Sirikata
Public Member Functions | Private Member Functions | Private Attributes
Sirikata::TimeSyncServer Class Reference

TimeSyncServer implements the server for a simple time synchronization protocol. More...

#include <TimeSyncServer.hpp>

Collaboration diagram for Sirikata::TimeSyncServer:

List of all members.

Public Member Functions

 TimeSyncServer (Context *ctx, OHDP::Service *ohdp)
 ~TimeSyncServer ()

Private Member Functions

void handleMessage (const OHDP::Endpoint &src, const OHDP::Endpoint &dst, MemoryReference payload)

Private Attributes

ContextmContext
OHDP::PortmPort

Detailed Description

TimeSyncServer implements the server for a simple time synchronization protocol.

You give it a Context to get time information and it returns the payload for a response message -- simply package it up in a container frame and send it back to the client.


Constructor & Destructor Documentation

Sirikata::TimeSyncServer::TimeSyncServer ( Context ctx,
OHDP::Service ohdp 
)
Sirikata::TimeSyncServer::~TimeSyncServer ( )

References mPort.


Member Function Documentation

void Sirikata::TimeSyncServer::handleMessage ( const OHDP::Endpoint src,
const OHDP::Endpoint dst,
MemoryReference  payload 
) [private]

Member Data Documentation

Referenced by handleMessage().


The documentation for this class was generated from the following files: