TCP Low Level Library Module

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:

- ipc_recv
- ipc_send

# Module Dependencies

The following modules are required along with this module:

- ipclient.c or ipcsrv.c
- ipconfig.c (optional for use with TCP config files)

Just make sure you compile and link this module along with the other required modules.

# Module Header Files

This module requires the header files:

- stdhead.h
- flsocket.h
- ipcomm.h

# Module Functions

## ipc_recv

    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.

## ipc_send

    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.

Goto Top | GPL Software Overview | GPL Library
Future Lab Home | Contact Webmaster | Feedback

Copyright © 1999-2006 Future Lab, Last Updated Jun 30, 2006