Brief description of class still missing. More...
#include <NetServer.h>
Public Member Functions | |
| void | sendNeighbors (const std::string &neighbors) |
Protected Member Functions | |
| virtual TcpClientStream * | createClientStream (int fileDescriptor, const Address &peer) |
Brief description of class still missing.
Full description of class still missing
| TcpClientStream * NetServer::createClientStream | ( | int | fileDescriptor, |
| const Address & | peer | ||
| ) | [protected, virtual] |
Implements GpCoreTools::TcpServerStream.
References TRACE.
{
TRACE;
return new NetClient(fileDescriptor, peer);
}
| void NetServer::sendNeighbors | ( | const std::string & | neighbors | ) |
References GpCoreTools::TcpServerStream::clients(), and TRACE.
{
TRACE;
std::list<TcpClientStream *>::const_iterator it;
for(it=clients().begin();it!=clients().end();it++) {
static_cast<NetBuffer *>((*it)->buffer())->sendNeighbors(neighbors);
}
}