|
CS473 - Computer Networks
| Displaying exercises/e6/files/chat.c
/* Includes */
#define K 1024
#define PORT 473XX
/**
* Create a program that connects a server on a host provided on the command
* line using your CS473 port number. Asynchronously monitor both stdin and
* the socket. If you can read from stdin, read the data, prepend to the
* input data the username of the user (you can get it from the USER environment
* variable) before sending it through the socket. If you can read from the
* socket, read it and print the data to stdout. Exit when EOF is reached on
* stdin or the socket.
*/
int main(int argc, char *argv[])
{
return 0;
}
|