12.07.2015 Views

z/VM: TCP/IP Programmer's Reference - z/VM - IBM

z/VM: TCP/IP Programmer's Reference - z/VM - IBM

z/VM: TCP/IP Programmer's Reference - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PINGreq . . . . . . . . . . . . . . 163CALLCODE Notifications . . . . . . . . . 163BUFFERspaceAVAILABLE . . . . . . . . 164CONNECTIONstateCHANGED . . . . . . 164DATAdelivered. . . . . . . . . . . . 164URGENTpending . . . . . . . . . . . 165UDPdatagramDELIVERED . . . . . . . . 165UDPdatagramSPACEavailable . . . . . . . 166RAW<strong>IP</strong>packetsDELIVERED. . . . . . . . 166RAW<strong>IP</strong>spaceAVAILABLE . . . . . . . . 167RESOURCESavailable . . . . . . . . . 167UDPresourcesAVAILABLE . . . . . . . . 167PINGresponse . . . . . . . . . . . . 167DUMMYprobe . . . . . . . . . . . . 168ACTIVEprobe . . . . . . . . . . . . 168Chapter 5. Inter-User CommunicationVehicle Sockets . . . . . . . . . . 169Prerequisite Knowledge . . . . . . . . . . 169Available Functions . . . . . . . . . . . 169Socket Programming with IUCV . . . . . . . 170Preparing to use the IUCV Socket API . . . . . 171Establishing an IUCV connection to <strong>TCP</strong>/<strong>IP</strong> . . 171Initializing the IUCV Connection . . . . . . 171Severing the IUCV Connection . . . . . . . 173Sever by the Application . . . . . . . . 173Sever by <strong>TCP</strong>/<strong>IP</strong> . . . . . . . . . . . 173Issuing Socket Calls . . . . . . . . . . . 174Overlapping Socket Requests . . . . . . . 174<strong>TCP</strong>/<strong>IP</strong> Response to an IUCV Request . . . . 175Cancelling a Socket Request . . . . . . . 175IUCV Socket Call Syntax . . . . . . . . . 176IUCV Socket Calls. . . . . . . . . . . . 177ACCEPT . . . . . . . . . . . . . . 177BIND . . . . . . . . . . . . . . . 178CANCEL . . . . . . . . . . . . . . 178CLOSE . . . . . . . . . . . . . . 179CONNECT . . . . . . . . . . . . . 180FCNTL . . . . . . . . . . . . . . 180GETCLIENTID . . . . . . . . . . . . 181GETHOSTID . . . . . . . . . . . . 182GETHOSTNAME . . . . . . . . . . . 182GETPEERNAME . . . . . . . . . . . 183GETSOCKNAME . . . . . . . . . . . 183GETSOCKOPT . . . . . . . . . . . . 184GIVESOCKET . . . . . . . . . . . . 185IOCTL. . . . . . . . . . . . . . . 186LISTEN . . . . . . . . . . . . . . 188MAXDESC . . . . . . . . . . . . . 189READ, READV. . . . . . . . . . . . 189RECV, RECVFROM, REC<strong>VM</strong>SG . . . . . . 190SELECT, SELECTEX . . . . . . . . . . 191SEND . . . . . . . . . . . . . . . 193SENDMSG . . . . . . . . . . . . . 194SENDTO . . . . . . . . . . . . . . 194SETSOCKOPT . . . . . . . . . . . . 195SHUTDOWN . . . . . . . . . . . . 196SOCKET . . . . . . . . . . . . . . 197TAKESOCKET . . . . . . . . . . . . 198WRITE, WRITEV . . . . . . . . . . . 199LASTERRNO . . . . . . . . . . . . 200Chapter 6. Remote Procedure Calls 201The RPC Interface . . . . . . . . . . . . 201Portmapper . . . . . . . . . . . . . . 203Contacting Portmapper . . . . . . . . . 204Target Assistance . . . . . . . . . . . 204RPCGEN Command . . . . . . . . . . . 204enum clnt_stat Structure. . . . . . . . . . 205Remote Procedure Call Library . . . . . . . 206Porting . . . . . . . . . . . . . . . 206Remapping C Identifiers with RPC.H . . . . 206Accessing System Return Messages . . . . . 206Printing System Return Messages . . . . . 207Enumerations . . . . . . . . . . . . 207RPC Global Variables. . . . . . . . . . . 207rpc_createerr . . . . . . . . . . . . 207svc_fds . . . . . . . . . . . . . . 207Remote Procedure and eXternal DataRepresentation Calls . . . . . . . . . . . 207auth_destroy() . . . . . . . . . . . . 207authnone_create() . . . . . . . . . . . 208authunix_create() . . . . . . . . . . . 208authunix_create_default() . . . . . . . . 208callrpc() . . . . . . . . . . . . . . 209clnt_broadcast() . . . . . . . . . . . 209clnt_call() . . . . . . . . . . . . . . 211clnt_control() . . . . . . . . . . . . 211clnt_create() . . . . . . . . . . . . . 212clnt_destroy() . . . . . . . . . . . . 213clnt_freeres() . . . . . . . . . . . . 213clnt_geterr() . . . . . . . . . . . . . 213clnt_pcreateerror() . . . . . . . . . . . 214clnt_perrno() . . . . . . . . . . . . 214clnt_perror() . . . . . . . . . . . . . 214clnt_spcreateerror() . . . . . . . . . . 215clnt_sperrno() . . . . . . . . . . . . 215clnt_sperror() . . . . . . . . . . . . 216clntraw_create() . . . . . . . . . . . 216clnttcp_create() . . . . . . . . . . . . 217clntudp_create() . . . . . . . . . . . 217get_myaddress() . . . . . . . . . . . 218getrpcport() . . . . . . . . . . . . . 219pmap_getmaps() . . . . . . . . . . . 219pmap_getport(). . . . . . . . . . . . 219pmap_rmtcall() . . . . . . . . . . . . 220pmap_set() . . . . . . . . . . . . . 221pmap_unset() . . . . . . . . . . . . 221registerrpc() . . . . . . . . . . . . . 222svc_destroy() . . . . . . . . . . . . 222svc_freeargs() . . . . . . . . . . . . 223svc_getargs() . . . . . . . . . . . . 223svc_getcaller() . . . . . . . . . . . . 224svc_getreq() . . . . . . . . . . . . . 224svc_register() . . . . . . . . . . . . 224svc_run() . . . . . . . . . . . . . . 225svc_sendreply(). . . . . . . . . . . . 225svc_unregister() . . . . . . . . . . . 226svcerr_auth() . . . . . . . . . . . . 226svcerr_decode(). . . . . . . . . . . . 226svcerr_noproc(). . . . . . . . . . . . 226svcerr_noprog(). . . . . . . . . . . . 227svcerr_progvers() . . . . . . . . . . . 227Contentsv

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!