Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9869 in orxonox.OLD for trunk/src/lib/network/udp_broadcast.cc


Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/udp_broadcast.cc

    r8623 r9869  
    2626  this->port = 0;
    2727  packet = SDLNet_AllocPacket( BROADCAST_PACKET_SIZE );
    28  
    29   if ( !packet ) 
     28
     29  if ( !packet )
    3030  {
    3131    printf( "SDLNet_AllocPacket: %s\n", SDLNet_GetError() );
    3232    assert( packet );
    3333  }
    34  
     34
    3535  this->socket = NULL;
    3636}
     
    4747    this->packet = NULL;
    4848  }
    49  
     49
    5050  if ( this->socket )
    5151  {
     
    5353    this->socket = NULL;
    5454  }
    55  
     55
    5656}
    5757
    5858/**
    5959 * listen for incoming broadcast packets
    60  * @param port port to listen on 
     60 * @param port port to listen on
    6161 * @return true on success
    6262 */
     
    7474{
    7575  this->port = port;
    76  
     76
    7777  return true;
    7878}
     
    8080/**
    8181 * send packet
    82  * @param data data to send 
     82 * @param data data to send
    8383 * @param length length of data
    8484 * @param ip if ip == NULL broadcast is used
Note: See TracChangeset for help on using the changeset viewer.