Compaq TCP/IP Services for OpenVMS
Sockets API and System Services Programming


Previous Contents Index

Chapter 4
4 Sockets API Reference
     4.1     Sockets API
    Command 1     accept()
    Command 2     bind()
    Command 3     close()
    Command 4     connect()
    Command 5     decc$get_sdc()
    Command 6     gethostbyaddr()
    Command 7     gethostbyname()
    Command 8     gethostname()
    Command 9     getnetbyaddr()
    Command 10     getnetbyname()
    Command 11     getpeername()
    Command 12     getprotobyname()
    Command 13     getprotobynumber()
    Command 14     getprotoent()
    Command 15     getservbyname()
    Command 16     getservbyport()
    Command 17     getsockname()
    Command 18     getsockopt()
    Command 19     htonl()
    Command 20     htons()
    Command 21     inet_addr()
    Command 22     inet_lnaof()
    Command 23     inet_makeaddr()
    Command 24     inet_netof()
    Command 25     inet_network()
    Command 26     inet_ntoa()
    Command 27     ioctl()
    Command 28     listen()
    Command 29     ntohl()
    Command 30     ntohs()
    Command 31     read()
    Command 32     recv()
    Command 33     recvfrom()
    Command 34     recvmsg()
    Command 35     select()
    Command 36     send()
    Command 37     sendmsg()
    Command 38     sendto()
    Command 39     setsockopt()
    Command 40     shutdown()
    Command 41     socket()
    Command 42     write()
Chapter 5
5 Using the $QIO System Service
     5.1     $QIO System Service Variations
     5.2     $QIO Format
         5.2.1         Symbol Definition Files
     5.3     $QIO Functions
     5.4     $QIO Arguments
         5.4.1         $QIO Function-Independent Arguments
         5.4.2         I/O Status Block
         5.4.3         $QIO Function-Dependent Arguments
     5.5     Passing Arguments by Descriptor
         5.5.1         Specifying an Input Parameter List
         5.5.2         Specifying an Output Parameter List
     5.6     Specifying a Socket Name
         5.6.1         Specifying a Buffer List
Chapter 6
6 OpenVMS System Services Reference
     6.1     System Service Descriptions
    Command 43     $ASSIGN
    Command 44     $CANCEL
    Command 45     $DASSGN
    Command 46     $QIO
     6.2     Network Pseudodevice Driver I/O Functions
    Command 47     IO$_ACCESS
    Command 48     IO$_ACCESS|IO$M_ACCEPT
    Command 49     IO$_ACPCONTROL
    Command 50     IO$_DEACCESS
    Command 51     IO$_READVBLK
    Command 52     IO$_SENSEMODE/IO$_SENSECHAR
    Command 53     IO$_SETMODE/IO$_SETCHAR
    Command 54     IO$_SETMODE|IO$M_OUTBAND
    Command 55     IO$_SETMODE|IO$M_READATTN
    Command 56     IO$_SETMODE|IO$M_WRTATTN
    Command 57     IO$_WRITEVBLK
     6.3     TELNET Port Driver I/O Function Codes
         6.3.1         Interface Definition
             6.3.1.1             Item List Codes
             6.3.1.2             Characteristic Mask Bits
             6.3.1.3             Protocol Types
             6.3.1.4             Service Types
         6.3.2         Passing Parameters to the TELNET Port Driver
    Command 58     IO$_TTY_PORT|IO$M_TN_STARTUP
    Command 59     IO$_TTY_PORT|IO$M_TN_SHUTDOWN
         6.3.3         Buffered Reading and Writing of Item Lists
    Command 60     IO$_TTY_PORT_BUFIO|IO$M_TN_SENSEMODE
    Command 61     IO$_TTY_PORT_BUFIO|IO$M_TN_SETMODE
Appendix A
Appendix A Socket Options
Appendix B
Appendix B IOCTL Requests
Appendix C
Appendix C Data Types
     C.1     OpenVMS Data Types
     C.2     C and C++ Implementations
Appendix D
Appendix D Error Codes
Appendix E
Appendix E Programming Examples
     E.1     TCP Client/Server Examples (Sockets API)
         E.1.1         TCP Client
         E.1.2         TCP Server
         E.1.3         TCP Server Accepting a Connection from the Auxiliary Server
     E.2     TCP Client/Server Examples (System Services)
         E.2.1         TCP Client
         E.2.2         TCP Server
         E.2.3         TCP Server Accepting a Connection from the Auxiliary Server
     E.3     UDP Client/Server Examples (Sockets API)
         E.3.1         UDP Client
         E.3.2         UDP Server
     E.4     UDP Client/Server Examples (System Services)
         E.4.1         UDP Client
         E.4.2         UDP Server


Previous Next Contents Index