The TCP low level library module has the file name ipcomm.c. This module provides low level send and receive primitives for a TCP client or server application. The Unix version of this API uses the TCP Berkeley sockets (BSD) interprocess communication method. The Windows version of this API uses the Winsock interprocess communication method. The Future Lab TCP socket API library (both client and server) use the TCP connection oriented protocol. The functions in this module should not be called by your application. The high level API functions call these functions.
Since the Future Lab QNX platform software does not use TCP for interprocess communication (QNX native message passing is the IPC method), this module is not available for QNX.
Here is a list of functions in the TCP low level library module:
The following modules are required along with this module:
Just make sure you compile and link this module along with the other required modules.
This module requires the header files:
Unix Prototype : int ipc_recv(int sock, char *buf) Windows Prototype : int ipc_recv(SOCKET sock, char *buf) Parameters : Name : sock Description: socket to receive from Name : buf Description: receive buffer Returns : number of bytes read upon success, zero otherwise
This function will receive data from an open socket. Since there is no guarantee that all the data will be received at once, this function makes repeated calls to the recv standard socket function call.
Unix Prototype : int ipc_send(int sock, char *buf) Windows Prototype : int ipc_send(SOCKET sock, char *buf) Parameters : Name : sock Description: socket to send data Name : buf Description: send buffer Returns : number of bytes sent upon success, zero otherwise
This function will send data from the send buffer through the socket to send data. Since there is no guarantee that all the data will be sent at once, this function makes repeated calls to the send standard socket function call.