/* tcp_utilities.h Adapted in C from Douglas Comer's "Internetworking with TCP/IP" by Jeff Ondich and Lauren Jantz, 1995. Rewritten in C++, Jeff Ondich, 2000 Adapted further by Jeff Ondich, 2023 The functions prototyped here are used by the example client (hello_client.c) and servers (hello_server.c and hello_concurrent.c). */ #define DEFAULT_QUEUE_LENGTH 5 // Client function prototypes int make_connection(const char *host_name, int port); // Server function prototypes int prepare_to_accept_connections(int port); // Client and server function prototypes int read_from_socket(int socket_descriptor, char *buffer, int byte_count); void get_peer_host_name(int socket_descriptor, char *name, int name_buffer_size);