Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5627 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Nov 17, 2005, 4:05:28 PM (19 years ago)
Author:
hdavid
Message:

fixed network_socket.cc

Location:
branches/network/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_socket.cc

    r5625 r5627  
    166166
    167167  if (res<length)
    168   {
    169168    PRINTF(1)("SDLNet_TCP_Send: %s\n", SDLNet_GetError());
    170     return res;
    171   }
     169       
     170        return res;
    172171}
    173172
  • branches/network/src/subprojects/network/network_unit_test.cc

    r5624 r5627  
    3131
    3232  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));
    3434
    3535  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));
    3737
    38   char * str1 = "client to server";
     38  int n;
     39        char * str1 = "client to server";
    3940  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);
    4245  SDL_Delay(1000);
    43   int n;
     46 
    4447  printf("read from server\n");
    4548  n = server.readBytes((byte*)buf, 1024);
Note: See TracChangeset for help on using the changeset viewer.