Public Member Functions | Protected Member Functions
NetServer Class Reference

Brief description of class still missing. More...

#include <NetServer.h>

Inheritance diagram for NetServer:
GpCoreTools::TcpServerStream GpCoreTools::Stream

List of all members.

Public Member Functions

void sendNeighbors (const std::string &neighbors)

Protected Member Functions

virtual TcpClientStreamcreateClientStream (int fileDescriptor, const Address &peer)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Member Function Documentation

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);
  }
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines