Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 8, 2006, 11:55:55 AM (18 years ago)
Author:
rennerc
Message:

fixed some bugs in udpSockets. subprojects/network should work now

File:
1 edited

Legend:

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

    r7553 r7556  
    6868  this->init();
    6969  this->serverSocket = serverSocket;
     70  this->userId = userId;
    7071}
    7172
     
    7374 * destructor
    7475 */
    75 UdpSocket::~ UdpSocket( )
     76UdpSocket::~UdpSocket( )
    7677{
    7778  if ( serverSocket )
     
    7980 
    8081  disconnectServer();
     82 
     83  if ( this->packet )
     84    SDLNet_FreePacket( this->packet );
     85 
     86  if ( socket )
     87    SDLNet_UDP_Close( socket );
    8188}
    8289
     
    186193    if ( networkPacket.data )
    187194    {
    188       delete networkPacket.data;
     195      free( networkPacket.data );
    189196      networkPacket.data = NULL;
    190197    }
Note: See TracChangeset for help on using the changeset viewer.