gtpc1m2yTransmission Control Protocol/Internet Protocol

Socket Application Programming Interface Overview

Partial Table-of-Contents

  • Socket Overview
  • Sockets
  • Types of Sockets Supported by TCP/IP
  • Socket Address for the Internet Domain
  • Port Numbers
  • Standard Dotted Decimal Formats
  • Mapping Address Parts
  • Integer Byte Order Conversion
  • Blocking and Nonblocking
  • Out-Of-Band Data
  • TPF Socket Application Programming Interface (API) Support
  • Socket API Functions Using TCP/IP Offload Support
  • Socket API Functions Using TCP/IP Native Stack Support
  • Socket User Exits
  • Socket Accept for TCP/IP Offload Support
  • Socket Activation
  • Socket Connect
  • Socket Cycle-Up When Using TCP/IP Offload Support
  • Socket Deactivation
  • Socket System Error
  • TCP/IP Native Stack Support Accept Connection
  • Select TCP/IP Support
  • Socket Cycle-Up When Using TCP/IP Native Stack Support
  • Full-Duplex Socket Support
  • Using activate_on_receipt
  • Socket Sweeper Support to Close Inactive Sockets
  • Sample Socket Sessions
  • Function Calls Used in a Sample TCP Session
  • Using the activate_on_receipt Function Call
  • Function Calls Used in a Sample UDP Session
  • Main Socket Function Calls
  • Socket Application Programming Interface Functions Reference
  • General Function Information
  • accept -- Accept a Connection Request
  • activate_on_accept -- Activate a Program When the Client Connects
  • activate_on_receipt -- Activate a Program after Data Received
  • activate_on_receipt_with_length -- Activate a Program after Data of Specified Length Received
  • bind -- Bind a Local Name to the Socket
  • close -- Shut Down a Socket
  • connect -- Request a Connection to a Remote Host
  • gethostbyaddr -- Get Host Information for IP Address
  • gethostbyname -- Get IP Address Information by Host Name
  • gethostid -- Return Identifier of Current Host
  • gethostname -- Return Host Name
  • getpeername -- Return the Name of the Peer
  • getservbyname -- Get Server Port by Name
  • getservbyport -- Get Server Name by Port
  • getsockname -- Return the Name of the Local Socket
  • getsockopt -- Return Socket Options
  • htonl -- Translate a Long Integer
  • htons -- Translate a Short Integer
  • inet_addr -- Construct Internet Address from Character String
  • inet_ntoa -- Return Pointer to a String in Dotted Decimal Notation
  • ioctl -- Perform Special Operations on Socket
  • listen -- Complete Binding, Create Connection Request Queue
  • ntohl -- Translate a Long Integer
  • ntohs -- Translate a Short Integer
  • read -- Read Data on a Socket
  • recv -- Receive Data on a Connected Socket
  • recvfrom -- Receive Data on Connected/Unconnected Socket
  • recvmsg -- Receive Message on Connected/Unconnected Socket
  • select -- Monitor Read, Write, and Exception Status
  • send -- Send Data on a Connected Socket
  • sendmsg -- Send Message on a Socket
  • sendto -- Send Data on an Unconnected Socket
  • setsockopt -- Set Options Associated with a Socket
  • shutdown -- Shut Down All or Part of a Duplex Connection
  • sock_errno -- Return the Error Code Set by a Socket Call
  • socket -- Create an Endpoint for Communication
  • write -- Write Data on a Connected Socket
  • writev -- Write Data on a Connected Socket