quick update:
do{
n = read ( s, bufin, MAXBUF );
(void) printf("Message recieved: %s\n", bufin);
if(n < 0){
perror("read");
exit(-1);
Type: Posts; User: spencer88
quick update:
do{
n = read ( s, bufin, MAXBUF );
(void) printf("Message recieved: %s\n", bufin);
if(n < 0){
perror("read");
exit(-1);
I changed the code in server.c to read
do{
n = read ( s, bufin, MAXBUF );
(void) printf("Message recieved: %s\n", bufin);
}while(n != 0);
I'm trying to write a simple program with two source files named client.c and server.c All it does is use sockets to connect a client to a server. The client types in a message and the server...