OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Protected Attributes | Friends | List of all members
openjaus::system::StreamServer Class Reference

This is a brief description. More...

#include <StreamServer.h>

Public Member Functions

 StreamServer ()
 
virtual ~StreamServer ()
 
const std::map< uint64_t, StreamSocket *> & getSocketMap () const
 Accessor to get the value of socketMap. More...
 
bool setSocketMap (std::map< uint64_t, StreamSocket * > socketMap)
 Accessor to set value of socketMap. More...
 
StreamSocketgetListener () const
 Accessor to get the value of listener. More...
 
bool setListener (StreamSocket *listener)
 Accessor to set value of listener. More...
 
const TimegetTimeout () const
 Accessor to get the value of timeout. More...
 
bool setTimeout (const Time &timeout)
 Accessor to set value of timeout. More...
 
bool open (InetAddress ipAddress, short port)
 Operation open. More...
 
int send (Packet &packet)
 Operation send. More...
 
int receive (Packet &packet)
 Operation receive. More...
 
bool reuseAddress (bool enabled)
 Operation reuseAddress. More...
 
StreamSocketconnectNew (InetAddress address, short port)
 
virtual std::string toString () const
 

Protected Attributes

std::map< uint64_t, StreamSocket *> socketMap
 
StreamSocketlistener
 
Time timeout
 
int pendingEventCount
 
int nextEvent
 

Friends

OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const StreamServer &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const StreamServer *object)
 

Detailed Description

Detailed description.

Author
Name (name@.nosp@m.emai.nosp@m.l.com)

Constructor & Destructor Documentation

§ StreamServer()

openjaus::system::StreamServer::StreamServer ( )

§ ~StreamServer()

openjaus::system::StreamServer::~StreamServer ( )
virtual

Member Function Documentation

§ connectNew()

StreamSocket * openjaus::system::StreamServer::connectNew ( InetAddress  address,
short  port 
)
Parameters
address
port

§ getListener()

StreamSocket * openjaus::system::StreamServer::getListener ( ) const

§ getSocketMap()

const std::map< uint64_t, StreamSocket *> & openjaus::system::StreamServer::getSocketMap ( ) const

§ getTimeout()

const Time & openjaus::system::StreamServer::getTimeout ( ) const

§ open()

bool openjaus::system::StreamServer::open ( InetAddress  ipAddress,
short  port 
)
Parameters
ipAddress
port

§ receive()

int openjaus::system::StreamServer::receive ( Packet packet)
Parameters
packet

§ reuseAddress()

bool openjaus::system::StreamServer::reuseAddress ( bool  enabled)
Parameters
enabled

§ send()

int openjaus::system::StreamServer::send ( Packet packet)
Parameters
packet

§ setListener()

bool openjaus::system::StreamServer::setListener ( StreamSocket listener)
Parameters
listenerThe value of the new listener.

§ setSocketMap()

bool openjaus::system::StreamServer::setSocketMap ( std::map< uint64_t, StreamSocket * >  socketMap)
Parameters
socketMapThe value of the new socketMap.

§ setTimeout()

bool openjaus::system::StreamServer::setTimeout ( const Time timeout)
Parameters
timeoutThe value of the new timeout.

§ toString()

std::string openjaus::system::StreamServer::toString ( ) const
virtual

Friends And Related Function Documentation

§ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const StreamServer object 
)
friend

§ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const StreamServer object 
)
friend

Member Data Documentation

§ listener

StreamSocket* openjaus::system::StreamServer::listener
protected

§ nextEvent

int openjaus::system::StreamServer::nextEvent
protected

§ pendingEventCount

int openjaus::system::StreamServer::pendingEventCount
protected

§ socketMap

std::map< uint64_t, StreamSocket * > openjaus::system::StreamServer::socketMap
protected

§ timeout

Time openjaus::system::StreamServer::timeout
protected

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