Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2005, 10:50:33 PM (18 years ago)
Author:
rennerc
Message:

handshake now sends NetworkGameManagerId

File:
1 edited

Legend:

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

    r6062 r6115  
    5151  this->tcpSocket = sock;
    5252
    53   SDL_CreateThread(thread_read, (void*)this);
    54   SDL_CreateThread(thread_write, (void*)this);
     53  readThread = SDL_CreateThread(thread_read, (void*)this);
     54  writeThread = SDL_CreateThread(thread_write, (void*)this);
    5555}
    5656
     
    6363  incomingBufferLength = 0;
    6464  outgoingBufferLength = 0;
     65
     66  readThread = NULL;
     67  writeThread = NULL;
    6568
    6669
     
    129132  }
    130133
    131   SDL_CreateThread(thread_read, (void*)this);
    132   SDL_CreateThread(thread_write, (void*)this);
     134  readThread = SDL_CreateThread(thread_read, (void*)this);
     135  writeThread = SDL_CreateThread(thread_write, (void*)this);
    133136}
    134137
     
    310313  if ( !self->thread_write_running )
    311314  {
     315    //delete self;
    312316    SDL_mutexV(self->threadTerminationMutex);
    313317  }
     
    378382  if ( !self->thread_read_running )
    379383  {
     384    //delete self;
    380385    SDL_mutexV(self->threadTerminationMutex);
    381386  }
Note: See TracChangeset for help on using the changeset viewer.