Public Member Functions | Protected Member Functions
GpsServer Class Reference

Brief description of class still missing. More...

#include <GpsServer.h>

Inheritance diagram for GpsServer:
GpCoreTools::TcpServerStream GpCoreTools::Stream

List of all members.

Public Member Functions

void broadcast (const char *bytes, int bytesCount)
 GpsServer ()
void setDevice (UbxDevice *d)

Protected Member Functions

virtual TcpClientStreamcreateClientStream (int fileDescriptor, const Address &peer)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References TRACE.

    : TcpServerStream()
{
  TRACE;
  _device=0;
}

Member Function Documentation

void GpsServer::broadcast ( const char *  bytes,
int  bytesCount 
)

References GpCoreTools::TcpServerStream::clients(), and TRACE.

{
  TRACE;
  std::list<TcpClientStream *>::const_iterator it;
  for(it=clients().begin(); it!=clients().end(); it++) {
    static_cast<GpsBuffer *>((*it)->buffer())->broadcast(bytes, bytesCount);
  }
}
TcpClientStream * GpsServer::createClientStream ( int  fileDescriptor,
const Address peer 
) [protected, virtual]

Implements GpCoreTools::TcpServerStream.

References TRACE.

{
  TRACE;
  return new GpsStream(_device, this, fileDescriptor, peer);
}
void GpsServer::setDevice ( UbxDevice d) [inline]

Referenced by UbxDevice::UbxDevice().

{_device=d;}

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