Commit d8099aa81912345a78fc782ccb08b5b811653f94
1 parent
96808dba
end of network experimentation
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
anubis_dev/vm/src/vmtools.c
| ... | ... | @@ -1146,7 +1146,7 @@ open_IP_connection(U32 conn_seg, |
| 1146 | 1146 | memcpy(&server_name.sin_addr, &ip_addr, sizeof(long)); |
| 1147 | 1147 | |
| 1148 | 1148 | |
| 1149 | - printf("Socket %d port %d\n",sock,ip_port); | |
| 1149 | +// printf("Socket %d port %d\n",sock,ip_port); | |
| 1150 | 1150 | //printf("\ntry open %d.%d.%d.%d|%d socket %d ",server_name.sin_addr.S_un.S_un_b.s_b1,server_name.sin_addr.S_un.S_un_b.s_b2,server_name.sin_addr.S_un.S_un_b.s_b3,server_name.sin_addr.S_un.S_un_b.s_b4,ip_port,sock); |
| 1151 | 1151 | /* try to connect */ |
| 1152 | 1152 | if (connect(sock,(struct sockaddr *)&server_name,sizeof(struct sockaddr)) == -1) |
| ... | ... | @@ -1261,7 +1261,7 @@ is_IP_connection_ready(U32 conn_seg) |
| 1261 | 1261 | { |
| 1262 | 1262 | if (FD_ISSET(sock, &the_fd_write_set)) |
| 1263 | 1263 | { |
| 1264 | - printf("Socket write status\n"); | |
| 1264 | +// printf("Socket write status\n"); | |
| 1265 | 1265 | if(getsockopt(sock, SOL_SOCKET, SO_ERROR, (char*)&optVal, &optLen) != SOCKET_ERROR) |
| 1266 | 1266 | { |
| 1267 | 1267 | switch(optVal) |
| ... | ... | @@ -1286,7 +1286,7 @@ is_IP_connection_ready(U32 conn_seg) |
| 1286 | 1286 | |
| 1287 | 1287 | if(FD_ISSET(sock, &the_fd_except_set)) |
| 1288 | 1288 | { |
| 1289 | - printf("Socket exception status\n"); | |
| 1289 | +// printf("Socket exception status\n"); | |
| 1290 | 1290 | if(getsockopt(sock, SOL_SOCKET, SO_ERROR, (char*)&optVal, &optLen) != SOCKET_ERROR) |
| 1291 | 1291 | { |
| 1292 | 1292 | switch(optVal) | ... | ... |