ContentsIndex
BSD Socket Functions
BSD Socket | Legend
Functions
Function 
Description 
Accepts a connection on a socket
Binds a local address with a socket
Closes the socket and release the resource. 
Connects a socket to a remote host. 
Gets the local IP held by the socket as specified. 
Retrieves the IP address and port number of the endpoint node. 
Retrieves the local IP address and port number. 
Gets the socket options. 
Converts long integer (32 bits) from host byte order to network byte order. 
Converts short integer (16 bits) from host byte order to network byte order 
Converts the internet address in a dotted-decimal string notation into an internet network address in the IN_ADDR structure. 
Converts an internet network address into a dotted-decimal string format. 
Converts an IPv4 or IPv6 address in its numeric binary form in network byte order into its standard text representation form. The format of 'x:x:x:x:x:x:d.d.d.d' is not supported. 
Converts an IPv4 or IPv6 address in its standard text presentation form into its numeric binary form in network byte order. The format of 'x:x:x:x:x:x:d.d.d.d' is not supported. 
Makes the specified socket listen to the incoming connections. 
Receives data on a connected socket
Receives data from the endpoint node. 
Allows the application to query the status of multiple sockets. If timeout is null, vm_soc_select() will wait indefinitely until the first socket is ready. If both tv_sec and tv_msec are zero, vm_soc_select() will timeout immediately for polling the sockets in the set. in:

  1. If listen has been called and a connection is pending, accept will succeed.
  2. Data is available for reading (includes OOB data if VM_SOC_OOBINLINE is enabled).
  3. Connection has been closed/reset/terminated

out:

  1. If processing a connect request (non-blocking mode), connection has succeeded.
  2. Data can be sent.

ex: If processing a connect request (non-blocking mode), connection attempt failed. OOB data... more 

Sends data on a connected socket
Sends data to the endpoint node. 
This function sets the socket options. 
Shutdowns the connection in specific side, such as reading side, writing side, or both. In a half read situation, vm_soc_shutdown() discards the received data that the application has not yet read and any further incoming data. In a half write situation of TCP, the remaining data will be sent first, then the FIN will be sent to close the connection. 
Creates a socket
Creates a socket with a particular bearer, as specified by the data_account_id. In contrast, the vm_soc_socket() creates a socket with the latest opened bearer. 
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.