Last change
on this file since 1938 was
1938,
checked in by scheusso, 15 years ago
|
added ClientConnectionListener that get information about clients
connecting to the server
|
-
Property svn:eol-style set to
native
|
File size:
483 bytes
|
Line | |
---|
1 | #include "ClientConnectionListener.h" |
---|
2 | #include "core/CoreIncludes.h" |
---|
3 | |
---|
4 | namespace network{ |
---|
5 | |
---|
6 | ClientConnectionListener::ClientConnectionListener() |
---|
7 | { |
---|
8 | RegisterRootObject(ClientConnectionListener); |
---|
9 | } |
---|
10 | |
---|
11 | void ClientConnectionListener::getConnectedClients(){ |
---|
12 | this->clientConnected(0); //server client id |
---|
13 | ClientInformation *client = ClientInformation::getBegin(); |
---|
14 | while(client){ |
---|
15 | this->clientConnected(client->getID()); |
---|
16 | client=client->next(); |
---|
17 | } |
---|
18 | } |
---|
19 | |
---|
20 | } |
---|
21 | |
---|
22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.