- Timestamp:
- Jun 15, 2006, 2:14:35 PM (18 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/udp_broadcast.cc
r8458 r8461 32 32 assert( packet ); 33 33 } 34 35 this->socket = NULL; 34 36 } 35 37 … … 40 42 UdpBroadcast::~UdpBroadcast () 41 43 { 44 if ( this->packet ) 45 { 46 SDLNet_FreePacket( this->packet ); 47 this->packet = NULL; 48 } 49 50 if ( this->socket ) 51 { 52 SDLNet_UDP_Close( this->socket ); 53 this->socket = NULL; 54 } 55 42 56 } 43 57 -
branches/network/src/lib/network/udp_broadcast.h
r8458 r8461 28 28 int port; 29 29 UDPpacket * packet; 30 UDPsocket socket; 30 31 31 32 };
Note: See TracChangeset
for help on using the changeset viewer.