(svn r15922) -Codechange: unify the ways to listen on a socket

This commit is contained in:
rubidium
2009-04-03 01:24:52 +00:00
parent 020b1f9328
commit 3e6c6d7294
6 changed files with 87 additions and 61 deletions

View File

@@ -125,7 +125,7 @@ public:
/** On destructing of this class, the socket needs to be closed */
virtual ~NetworkUDPSocketHandler() { this->Close(); }
bool Listen(uint32 host, uint16 port, bool broadcast);
bool Listen(NetworkAddress address, bool broadcast);
void Close();
void SendPacket(Packet *p, NetworkAddress *recv);