- Page 1: z/VMTCP/IP Level 3A0Programmer’s
- Page 5 and 6: |||ContentsPreface . . . . . . . .
- Page 7 and 8: PINGreq . . . . . . . . . . . . . .
- Page 9: Accessing a Service . . . . . . . .
- Page 12: “Chapter 2. C Sockets Application
- Page 15 and 16: Syntax Diagram DescriptionRequired
- Page 17 and 18: Summary of ChangesThis section desc
- Page 19 and 20: Chapter 1. General Programming Info
- Page 21 and 22: General Programming Information►(
- Page 23 and 24: Chapter 2. C Sockets Application Pr
- Page 25 and 26: Socket AddressA socket address is d
- Page 27: sockets. In the AF_IUCV domain, the
- Page 30 and 31: C Sockets Application Program Inter
- Page 32 and 33: C Sockets Application Program Inter
- Page 34 and 35: C Sockets Application Program Inter
- Page 36 and 37: C Sockets Application Program Inter
- Page 38 and 39: C Socket ReferenceTable 2. C Socket
- Page 40 and 41: accept()accept()#include #include i
- Page 42 and 43: ind()#include #include int bind(s,
- Page 44 and 45: ind()EAFNOSUPPORTEADDRINUSEEINVALto
- Page 46 and 47: connect()#include #include int conn
- Page 48 and 49: connect()EINVALEISCONNENETUNREACHET
- Page 50 and 51: fcntl()Description: The operating c
- Page 52 and 53:
gethostbyaddr()searches the HOSTS A
- Page 54 and 55:
gethostid()gethostid()See Also: get
- Page 56 and 57:
getibmsockopt()#include #include #i
- Page 58 and 59:
getnetent()getnetent()#include stru
- Page 60 and 61:
getprotobynumber()#include struct p
- Page 62 and 63:
getservbyport()The getservbyport()
- Page 64 and 65:
||||||||||||||getsockopt()#include
- Page 66 and 67:
getsockopt()SO_OOBINLINESO_REUSEADD
- Page 68 and 69:
givesocket()subtasknamereservedas y
- Page 70 and 71:
inet_addr()inet_addr()#include unsi
- Page 72 and 73:
inet_network()#include unsigned lon
- Page 74 and 75:
ioctl()SIOCGIFMETRICGets the networ
- Page 76 and 77:
maxdesc()EFAULTEALREADYEINVALENOMEM
- Page 78 and 79:
ead()readv()Return Values: If succe
- Page 80 and 81:
ecv()EBADFEFAULTEWOULDBLOCKIndicate
- Page 82 and 83:
ecvmsg()select()msg_iov Specifies a
- Page 84 and 85:
select()A socket is ready for readi
- Page 86 and 87:
selectex()ecbptrPoints to the event
- Page 88 and 89:
sendmsg()sendto()Description: The s
- Page 90 and 91:
sethostent()sethostent()int sethost
- Page 92 and 93:
setibmsockopt()SO_IGNOREINCOMINGPUS
- Page 94 and 95:
setsockopt()setsockopt()#include #i
- Page 96 and 97:
setsockopt()|The following options
- Page 98 and 99:
sockdb_sock_debug()ParameteronoffDe
- Page 100 and 101:
shutdown()socket()v 0 ends communic
- Page 102 and 103:
socket()Once an application has rec
- Page 104 and 105:
takesocket()EBADFtcperror()EFAULTEI
- Page 106 and 107:
write()writev()See Also: connect(),
- Page 108 and 109:
C Socket TCP Client/** Put the serv
- Page 110 and 111:
C Socket TCP Server}/** Receive the
- Page 112 and 113:
C Socket UDP Clientint argc;char **
- Page 114 and 115:
Pascal LanguageData StructuresProgr
- Page 116 and 117:
Pascal Languageconnection. You spec
- Page 118 and 119:
Pascal LanguageRAWIPpacketsDELIVERE
- Page 120 and 121:
Pascal LanguageBytesDeliveredIndica
- Page 122 and 123:
Pascal LanguageTcpWaitOpen are avai
- Page 124 and 125:
Pascal LanguageThe notifications ar
- Page 126 and 127:
Pascal LanguageThe following table
- Page 128 and 129:
Pascal LanguageAddUserNoteThe AddUs
- Page 130 and 131:
GetHostNumberprocedure EndTcpIp;ext
- Page 132 and 133:
GetNextNoteprocedure GetNextNote(va
- Page 134 and 135:
IsLocalHostHOSTloopbackSpecifies on
- Page 136 and 137:
MonQueryMonQuery returns, Length is
- Page 138 and 139:
RawIpCloseReturnCodeIndicates the s
- Page 140 and 141:
RawIpSendprocedure RawIpSend(Protoc
- Page 142 and 143:
SayCalReLA R13,PASCSAVELA R1,VMCFPA
- Page 144 and 145:
SayProTyParameterProtocolDescriptio
- Page 146 and 147:
TcpCloseprocedure TcpClose(Connecti
- Page 148 and 149:
TcpFReceive, TcpReceive, and TcpWai
- Page 150 and 151:
TcpFSend, TcpSend, and TcpWaitSendT
- Page 152 and 153:
TcpNameChangeIf required, this proc
- Page 154 and 155:
TcpOpen and TcpWaitOpenvvvvvvvvvvvv
- Page 156 and 157:
TcpStatusvTCPipSHUTDOWNFor a descri
- Page 158 and 159:
UdpOpenParameterLocalSocketConnInde
- Page 160 and 161:
UdpSendFor a description of Pascal
- Page 162 and 163:
Sample Pascal ProgramDropEmulation;
- Page 164 and 165:
Sample Pascal Program(Note.NewState
- Page 166 and 167:
VMCF InterfaceV1 DS XV2 DS XFUNC DS
- Page 168 and 169:
VMCF InterfaceTable 16. Available V
- Page 170 and 171:
VMCF InterfaceTable 18. VMCF TCPIP
- Page 172 and 173:
VMCF InterfaceFUNC: SENDVADA: 0LENA
- Page 174 and 175:
VMCF InterfaceTCPIP responds with R
- Page 176 and 177:
VMCF InterfaceABORTtcpThe ABORTtcp
- Page 178 and 179:
VMCF InterfaceTCPIP responds with t
- Page 180 and 181:
VMCF InterfaceFUNC: SENDVADA: 0LENA
- Page 182 and 183:
VMCF InterfaceThe VMCF transaction
- Page 184 and 185:
VMCF InterfaceFUNC: SENDJOBNAME: Na
- Page 186 and 187:
VMCF InterfaceFUNC: SENDJOBNAME: Na
- Page 188 and 189:
IUCV SocketsSocket Programming with
- Page 190 and 191:
IUCV SocketsYour program responds b
- Page 192 and 193:
IUCV SocketsNO MORE CCBSNO CCB!!!!Y
- Page 194 and 195:
IUCV SocketsIUCV Socket Call Syntax
- Page 196 and 197:
ACCEPTANSBUFPoints to a buffer to c
- Page 198 and 199:
CONNECTCONNECTThe CONNECT call is u
- Page 200 and 201:
GETCLIENTIDOffset Name Length Comme
- Page 202 and 203:
GETSOCKNAMEbound. If the socket is
- Page 204 and 205:
GIVESOCKETvvvvvTo pass a socket, th
- Page 206 and 207:
IOCTLTable 21. Values for cmd Argum
- Page 208 and 209:
READ, READVOffset Name Length Comme
- Page 210 and 211:
SELECT, SELECTEXbitmask = X'0000000
- Page 212 and 213:
SENDOffset Name Length Comments20 *
- Page 214 and 215:
SETSOCKOPTOffset Name Length Commen
- Page 216 and 217:
SOCKETOffset Name Length Comments12
- Page 218 and 219:
LASTERRNOLASTERRNOAs explained in
- Page 220 and 221:
RPCs(Begin)│───────
- Page 222 and 223:
RPCsreceiving processes receive the
- Page 224 and 225:
RPCsenum clnt_stat {RPC_SUCCESS=0,
- Page 226 and 227:
auth_destroy()authPoints to authent
- Page 228 and 229:
clnt_broadcast()#include enum clnt_
- Page 230 and 231:
clnt_control()Description: The clnt
- Page 232 and 233:
clnt_geterr()clnterrpPoints to a cl
- Page 234 and 235:
clnt_sperrno()Description: The clnt
- Page 236 and 237:
clntudp_create()#include CLIENT *cl
- Page 238 and 239:
pmap_getport()#include u_shortpmap_
- Page 240 and 241:
pmap_unset()Description: The pmap_u
- Page 242 and 243:
svc_getcaller()svc_getcaller()#incl
- Page 244 and 245:
svc_unregister()svc_unregister()#in
- Page 246 and 247:
svcerr_systemerr()#include voidsvce
- Page 248 and 249:
xdr_accepted_reply()#include bool_t
- Page 250 and 251:
xdr_bytes()Description: The xdr_byt
- Page 252 and 253:
xdr_enum().xdr_float()error = callr
- Page 254 and 255:
xdr_opaque()#include bool_txdr_opaq
- Page 256 and 257:
xdr_reference()#include bool_txdr_r
- Page 258 and 259:
xdr_u_int()#include bool_txdr_u_int
- Page 260 and 261:
xdr_vector()basepnelemelemsizexdr_e
- Page 262 and 263:
xdrrec_endofrecord()xdrrec_endofrec
- Page 264 and 265:
Sample RPC ProgramsSample RPC Progr
- Page 266 and 267:
RPC Raw Data StreamRPC Raw Data Str
- Page 268 and 269:
RPC Raw Data Stream250 z/VM: TCP/IP
- Page 270 and 271:
X Window System InterfaceFigure 29
- Page 272 and 273:
X Window System InterfaceIdentifyin
- Page 274 and 275:
X Window System InterfaceGLOBAL TXT
- Page 276 and 277:
X Window System InterfaceTable 27.
- Page 278 and 279:
X Window System InterfaceManipulati
- Page 280 and 281:
X Window System InterfaceTable 38.
- Page 282 and 283:
X Window System InterfaceHandling W
- Page 284 and 285:
X Window System InterfaceHandling E
- Page 286 and 287:
X Window System InterfaceTable 51.
- Page 288 and 289:
X Window System InterfaceTable 53.
- Page 290 and 291:
X Window System InterfaceTable 58.
- Page 292 and 293:
X Window System InterfaceTable 59.
- Page 294 and 295:
X Window System InterfaceTable 61.
- Page 296 and 297:
X Window System InterfaceTable 63.
- Page 298 and 299:
X Window System InterfaceX Authoriz
- Page 300 and 301:
X Window System InterfaceTable 65.
- Page 302 and 303:
X Window System InterfaceTable 65.
- Page 304 and 305:
X Window System InterfaceTable 65.
- Page 306 and 307:
X Window System InterfaceTable 65.
- Page 308 and 309:
X Window System InterfaceTable 65.
- Page 310 and 311:
X Window System InterfaceTable 66.
- Page 312 and 313:
X Window System Interfaceintracompo
- Page 314 and 315:
X Window System InterfaceAthena Wid
- Page 316 and 317:
X Window System Interfacefollowing
- Page 318 and 319:
Xlib Sample Program* the CENV group
- Page 320 and 321:
Athena Widget Sample Program*/}XtAp
- Page 322 and 323:
Kerberos Authentication Systemrealm
- Page 324 and 325:
Kerberos Authentication SystemFigur
- Page 326 and 327:
Kerberos Routines ReferenceKerberos
- Page 328 and 329:
krb_kntoln()ParameteradlnameDescrip
- Page 330 and 331:
krb_mk_safe()long krb_mk_safe(in, o
- Page 332 and 333:
krb_rd_priv()krb_rd_req()See the KR
- Page 334 and 335:
krb_recvauth()int krb_recvauth(opti
- Page 336 and 337:
krb_sendauth()Sample Kerberos Progr
- Page 338 and 339:
Kerberos Clientsizeof(hp->h_addr));
- Page 340 and 341:
Kerberos Server}if (listen(s, 10) <
- Page 342 and 343:
Kerberos Server324 z/VM: TCP/IP Pro
- Page 344 and 345:
SNMP Agent Distributed Program Inte
- Page 346 and 347:
SNMP Agent Distributed Program Inte
- Page 348 and 349:
DPIdebug()fDPIparse()Parameter Desc
- Page 350 and 351:
mkDPIresponse()Description: The mkD
- Page 352 and 353:
mkDPItrap()sizeof(unsigned long), &
- Page 354 and 355:
pDPIpacket()The packet_type field c
- Page 356 and 357:
The DPISAMPLE Program (Sample DPI S
- Page 358 and 359:
Client Sample Program/* Jun 1992 -
- Page 360 and 361:
Client Sample Programstatic void is
- Page 362 and 363:
Client Sample Program}case ONE_TRAP
- Page 364 and 365:
Client Sample Programvar_value_len
- Page 366 and 367:
Client Sample Programprintf(" Retur
- Page 368 and 369:
Client Sample Program}sprintf(temp_
- Page 370 and 371:
Client Sample Programbreak;case 5:
- Page 372 and 373:
Client Sample Program}data = mkDPIl
- Page 374 and 375:
Client Sample Programuse_iucv = TRU
- Page 376 and 377:
Client Sample Program}DO_ERROR("ini
- Page 378 and 379:
SMTP Virtual Machine InterfacesSMTP
- Page 380 and 381:
SMTP Virtual Machine Interfaces►
- Page 382 and 383:
SMTP Virtual Machine InterfacesIf S
- Page 384 and 385:
SMTP Virtual Machine InterfacesvThe
- Page 386 and 387:
SMTP Virtual Machine InterfacesSome
- Page 388 and 389:
SMTP Virtual Machine InterfacesPath
- Page 390 and 391:
SMTP Virtual Machine InterfacesVERB
- Page 392 and 393:
SMTP Virtual Machine Interfacesveri
- Page 394 and 395:
SMTP Virtual Machine InterfacesTabl
- Page 396 and 397:
SMTP Virtual Machine InterfacesTabl
- Page 398 and 399:
SMTP Virtual Machine Interfacesv Fo
- Page 400 and 401:
SMTP Virtual Machine Interfaces382
- Page 402 and 403:
||||||||||||||SMTP Virtual Machine
- Page 404 and 405:
SMTP Virtual Machine InterfacesOutp
- Page 406 and 407:
SMTP Virtual Machine InterfacesBeca
- Page 408 and 409:
SMTP Virtual Machine InterfacesThe
- Page 410 and 411:
Telnet Session Connection ExitTelne
- Page 412 and 413:
Telnet Printer Management ExitInter
- Page 414 and 415:
FTP Server Exitv- connection is clo
- Page 416 and 417:
FTP Server ExitReturn code from exi
- Page 418 and 419:
FTP Server ExitDirectory TypeWorkin
- Page 420 and 421:
||FTP Server ExitChange Directory P
- Page 422 and 423:
404 z/VM: TCP/IP Programmer’s Ref
- Page 424 and 425:
Pascal Return CodesTable 86. Pascal
- Page 426 and 427:
Explanatory Notes408 z/VM: TCP/IP P
- Page 428 and 429:
C API System Return CodesTable 87.
- Page 430 and 431:
C API System Return Codes412 z/VM:
- Page 432 and 433:
Well-Known Port AssignmentsTable 88
- Page 434 and 435:
Well-Known Port Assignments416 z/VM
- Page 436 and 437:
RFCs|RFC Title Author1033 Domain Ad
- Page 438 and 439:
RFCsGovernment Systems, Inc.Attn: N
- Page 440 and 441:
Abbreviations and Acronyms|HIPPIHig
- Page 442 and 443:
Abbreviations and Acronyms424 z/VM:
- Page 444 and 445:
programs and other programs (includ
- Page 446 and 447:
428 z/VM: TCP/IP Programmer’s Ref
- Page 448 and 449:
agent. As defined in the SNMP archi
- Page 450 and 451:
checksum. The sum of a group of dat
- Page 452 and 453:
doubleword. A contiguous sequence o
- Page 454 and 455:
Information Management System (IMS)
- Page 456 and 457:
media access control (MAC). The met
- Page 458 and 459:
modulation on a different frequency
- Page 460 and 461:
esponse unit (RU). In SNA, a messag
- Page 462 and 463:
Time Sharing Option (TSO). An opera
- Page 464 and 465:
446 z/VM: TCP/IP Programmer’s Ref
- Page 466 and 467:
End Usev z/VM: CP Command and Utili
- Page 468 and 469:
450 z/VM: TCP/IP Programmer’s Ref
- Page 470 and 471:
GETPEERNAME (IUCV) 183getprotobynam
- Page 472 and 473:
RawIpReceive (Pascal) 120RawIpSend
- Page 474 and 475:
TCP/IP initialization and terminati
- Page 476 and 477:
xdr_reference() 237xdr_rejected_rep
- Page 478:
Readers’ Comments — We’d Like
- Page 481:
Spine information: z/VM TCP/IP Prog