1999-10-01 14:06:34 -04:00
|
|
|
--- server.cc.orig Thu Sep 16 16:50:51 1999
|
|
|
|
+++ server.cc Thu Sep 16 17:00:39 1999
|
|
|
|
@@ -8,7 +8,10 @@
|
|
|
|
server::server(char *host, unsigned long port) {
|
|
|
|
inbuf = 0;
|
|
|
|
bzero(buf,BUFSIZE+1);
|
|
|
|
- soc = connectto(host,port);
|
|
|
|
+ if((soc = connectto(host,port)) == -1) {
|
|
|
|
+ fprintf(stderr, "Cannot connect to host \"%s\"\n", host);
|
|
|
|
+ exit(1);
|
|
|
|
+ }
|
1999-08-01 23:32:21 -04:00
|
|
|
}
|
1999-10-01 14:06:34 -04:00
|
|
|
|
|
|
|
int server::sockfd() {
|