Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

socket_lib.c File Reference

This is the implementation of the Socket Library. More...

#include "socket_lib.h"

Functions

int accept_connect (int sock)
 This function calls the accept function with additional logging.

int create_connect (struct in_addr *ipaddr, short port)
 Allows a client to establish a TCP connection with the supplied IP address and port.

int create_serv_socket (int port, int queue_len)
 This function creates a server socket by binding and listening on the supplied port.

int safe_sock_send (int sock, void *send_buff, unsigned int send_len, unsigned int timeout)
 Allows data to be sent safely over the network without fear of the program terminating.

int safe_sock_recv (int sock, void *recv_buff, unsigned int recv_len, unsigned int timeout)
 Allows data to be received over the network without having to manually check that all the data was received.


Detailed Description

This is the implementation of the Socket Library.

Author:
Daniel R. Warren
Version:
1.0
Date:
November 2004

Generated on Thu Dec 16 23:07:31 2004 for alsad by doxygen 1.3.6