Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 23, 2009, 2:12:44 AM (15 years ago)
Author:
rgrieder
Message:

Cleanup in network plus a few dependency reductions (no enet-function inlines, using enum PacketFlag instead of the enet version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp5/src/network/ServerConnection.cc

    r3203 r3209  
    3030
    3131#include <cassert>
     32#include <string>
     33#include <enet/enet.h>
    3234
     35#include "util/Debug.h"
    3336#include "ClientInformation.h"
    34 
    35 #include "core/CoreIncludes.h"
    3637
    3738namespace orxonox
     
    5051      closeListener();
    5152    delete this->bindAddress_;
     53  }
     54
     55  void ServerConnection::setBindAddress( const std::string& bindAddress ) {
     56    enet_address_set_host (this->bindAddress_, bindAddress.c_str());
     57  }
     58
     59  void ServerConnection::setPort( unsigned int port ) {
     60      this->bindAddress_->port = port;
    5261  }
    5362
Note: See TracChangeset for help on using the changeset viewer.