Meanwhile, On The Server (Cont.) #define DAYTIME "We are too lazy to give you the time." int s; /* server's connection accepting socket. */ int cs; /* new socket created for a client. */ struct sockaddr_in csa; /* client's address struct. */ int size_csa /* size of client's address struct. */ /* allocate a free socket */ /* Internet address family, Stream socket */ s = socket(AF_INET, SOCK_STREAM, 0); if (s < 0) { perror("socket: allocation failed"); exit(1); } /* bind the socket to the newly formed address */ if (bind(s, (struct sockaddr *)&sa, sizeof(sa)) ) { perror("bind"); exit(1); }