#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. |