Changeset 5627 in orxonox.OLD for branches/network/src
- Timestamp:
- Nov 17, 2005, 4:05:28 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r5625 r5627 166 166 167 167 if (res<length) 168 {169 168 PRINTF(1)("SDLNet_TCP_Send: %s\n", SDLNet_GetError()); 170 return res; 171 } 169 170 return res; 172 171 } 173 172 -
branches/network/src/subprojects/network/network_unit_test.cc
r5624 r5627 31 31 32 32 printf("read from client before sending data\n"); 33 printf("result: %d \n", client.readBytes((byte*)buf, 1024));33 printf("result: %d bytes\n", client.readBytes((byte*)buf, 1024)); 34 34 35 35 printf("read from server before sending data\n"); 36 printf("result: %d \n", server.readBytes((byte*)buf, 1024));36 printf("result: %d bytes\n", server.readBytes((byte*)buf, 1024)); 37 37 38 char * str1 = "client to server"; 38 int n; 39 char * str1 = "client to server"; 39 40 char * str2 = "server to client"; 40 client.writeBytes((byte*)str1, strlen(str1)+1); 41 server.writeBytes((byte*)str2, strlen(str2)+1); 41 n = client.writeBytes((byte*)str1, strlen(str1)+1); 42 printf("%d bytes send from client\n", n); 43 n = server.writeBytes((byte*)str2, strlen(str2)+1); 44 printf("%d bytes send from server\n", n); 42 45 SDL_Delay(1000); 43 int n;46 44 47 printf("read from server\n"); 45 48 n = server.readBytes((byte*)buf, 1024);
Note: See TracChangeset
for help on using the changeset viewer.