mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 08:29:00 +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:
@@ -559,6 +559,17 @@ void ClientInterface::close()
|
||||
delete clientSocket;
|
||||
clientSocket= NULL;
|
||||
}
|
||||
|
||||
std::vector<string> ClientInterface::discoverServers() {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
std::vector<string> serverList = ClientSocket::discoverServers();
|
||||
|
||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
return serverList;
|
||||
}
|
||||
|
||||
/*
|
||||
bool ClientInterface::getFogOfWar()
|
||||
{
|
||||
|
Reference in New Issue
Block a user