removed error msg
authorjihoonl <jihoonl>
Mon, 11 Jan 2010 10:55:36 +0000 (10:55 +0000)
committerjihoonl <jihoonl>
Mon, 11 Jan 2010 10:55:36 +0000 (10:55 +0000)
Robust/src/Runtime/DSTM/interface_recovery/sockpool.c

index 6c5d74520b4bc2c5f9bb0935de31c124985ac9f1..4508ef043bc11fa450e6463ce114f8744920f476 100644 (file)
@@ -61,7 +61,7 @@ int createNewSocket(unsigned int mid) {
   int sd;
   int flag=1;
   if((sd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
-    fprintf(stderr,"%s() Error: In creating socket at %s, %d\n", __func__, __FILE__, __LINE__);
+//    fprintf(stderr,"%s() Error: In creating socket at %s, %d\n", __func__, __FILE__, __LINE__);
     return -1;
   }
   setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *) &flag, sizeof(flag));
@@ -71,8 +71,8 @@ int createNewSocket(unsigned int mid) {
   remoteAddr.sin_port = htons(LISTEN_PORT);
   remoteAddr.sin_addr.s_addr = htonl(mid);
   if(connect(sd, (struct sockaddr *)&remoteAddr, sizeof(remoteAddr)) < 0) {
-    perror("socket connect: ");
-    fprintf(stderr,"%s(): Error %d connecting to %s:%d\n", __func__, errno, inet_ntoa(remoteAddr.sin_addr), LISTEN_PORT);
+//    perror("socket connect: ");
+//    fprintf(stderr,"%s(): Error %d connecting to %s:%d\n", __func__, errno, inet_ntoa(remoteAddr.sin_addr), LISTEN_PORT);
     close(sd);
     return -1;
   }