//----------------------------------------------------- // T C P . h //----------------------------------------------------- // routines to manuiplate tcp connection // include ... // establish an connection (using socket) //----------------------------------------------------- // part (a few lines) obtain from // http://munkora.cs.mu.oz.au/~ad/code/net/lyse.c // by Andrew Davison. Prince of Songkla University, Thailand // http://munkora.cs.mu.oz.au/~ad/ //----------------------------------------------------- int establish_connection ( char *host, int port_number, FILE **fp ); int open_socket(char *host, char *cmd, int port_number);