diff options
author | rubidium <rubidium@openttd.org> | 2011-05-05 16:24:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-05 16:24:48 +0000 |
commit | c4aa943aaa2718d046aa591555efb7538e77d780 (patch) | |
tree | 69f95b618a720fe5b8bed8d8514e0eccd79f78b4 /src/network/network.cpp | |
parent | 944a5cb7aafc4d8347c14154e24c05aa00b430c5 (diff) | |
download | openttd-c4aa943aaa2718d046aa591555efb7538e77d780.tar.xz |
(svn r22424) -Document: some more bits
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r-- | src/network/network.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index 741540661..d3f771c8e 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -126,7 +126,7 @@ NetworkClientInfo::~NetworkClientInfo() * @param client_id the ClientID to search for * @return return a pointer to the corresponding NetworkClientSocket struct or NULL when not found */ -/* static */ NetworkClientSocket *NetworkClientSocket::GetByClientID(ClientID client_id) +/* static */ ServerNetworkGameSocketHandler *ServerNetworkGameSocketHandler::GetByClientID(ClientID client_id) { NetworkClientSocket *cs; @@ -479,6 +479,11 @@ void ParseConnectionString(const char **company, const char **port, char *connec } } +/** + * Handle the acception of a connection to the server. + * @param s The socket of the new connection. + * @param address The address of the peer. + */ /* static */ void ServerNetworkGameSocketHandler::AcceptConnection(SOCKET s, const NetworkAddress &address) { /* Register the login */ |