Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2005, 5:49:48 PM (19 years ago)
Author:
patrick
Message:

network: changed the synchronizeable interface, since the data synchronizeables, more debug output

File:
1 edited

Legend:

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

    r5798 r5804  
    6363 * Constructor to connect directly
    6464 */
    65 NetworkSocket::NetworkSocket(IPaddress ip, unsigned int port)
     65NetworkSocket::NetworkSocket(IPaddress ip)
    6666{
    6767  NetworkSocket();
    68   connectToServer(ip, port);
     68  connectToServer(ip);
    6969}
    7070
     
    9090 * It is called by the NetworkStream. It creates a TCP/UDP socket for the connection.
    9191 * @param ip
    92  * @param port
    93  */
    94 void NetworkSocket::connectToServer(IPaddress ip, unsigned int port)
     92 */
     93void NetworkSocket::connectToServer(IPaddress ip)
    9594{
    9695  //check if not already connected or listening
     
    218217  memcpy(outgoingBuffer + outgoingBufferLength, data, nbytes);
    219218  outgoingBufferLength += nbytes;
    220  
     219
    221220  SDL_mutexV(outgoingBufferMutex);
    222221
     
    287286int NetworkSocket::readBlock(byte * data, int length)
    288287{
     288  printf("NetworkSocket: got %i bytes, NetworkStream requested %i bytes\n", this->incomingBufferLength, length);
    289289  if (incomingBufferLength >= length)
    290290    return readBytes(data, length);
Note: See TracChangeset for help on using the changeset viewer.