mirror of
https://github.com/glest/glest-source.git
synced 2025-09-26 23:49:03 +02:00
Added auto-discovery of LAN servers using UDP broadcast. (for now the client must press the A key from the join menu to trigger this)
This commit is contained in:
@@ -103,10 +103,15 @@ public:
|
||||
// =====================================================
|
||||
|
||||
class ServerSocket: public Socket{
|
||||
|
||||
public:
|
||||
void bind(int port);
|
||||
void listen(int connectionQueueSize= SOMAXCONN);
|
||||
Socket *accept();
|
||||
|
||||
protected:
|
||||
|
||||
void broadcast_thread();
|
||||
};
|
||||
|
||||
}}//end namespace
|
||||
|
Reference in New Issue
Block a user