class TcpSocketInfo

This Inner class is used to store information about a socket opened with a client.

Public Methods

[more] TcpSocketInfo(string sessionId, ServerSocket* socket, int timer)
constructor
[more] TcpSocketInfo(string sessionId, ServerSocket* socket)
constructor
[more] TcpSocketInfo()
Default constructor
[more]string getSessionId()
Returns sessionId
[more]void setSessionId(string sessionId)
Set Session Id
[more]ServerSocket* getSocket()
Returns ServerSocket Object
[more]void setSocket(ServerSocket* socket)
Sets Tcp/ip socket
[more]int getTimer()
Getter method for timer
[more]void setTimer(int timer)
Setter methods for timer
[more]bool isSendUpdates()
Checks whether updates are sent to client
[more]void setSendUpdates(bool sendUpdates)
Sets the sendUpdates boolean


Documentation

This Inner class is used to store information about a socket opened with a client. It stores information such as...

sessionId :: SessionId of client socket :: Tcp/ip socket reference of client timer :: counter indicates how much time elapsed in seconds since Tcp/ip server has sends last updates (real updates as well as empty updates) to client sendUpdates :: boolean value indicates whether Tcp/ip server has send updates (real or empty)

o TcpSocketInfo(string sessionId, ServerSocket* socket, int timer)
constructor
Parameters:
sessionId - String Value of 'sessionId'
socket - ServerSocket Object
timer - Integer Value of timer

o TcpSocketInfo(string sessionId, ServerSocket* socket)
constructor
Parameters:
sessionId - String Value of 'sessionId'
socket - ServerSocket Object

o TcpSocketInfo()
Default constructor

ostring getSessionId()
Returns sessionId
Returns:
String Value of sessionId

ovoid setSessionId(string sessionId)
Set Session Id
Parameters:
sessionId - String Value of 'sessionId'

oServerSocket* getSocket()
Returns ServerSocket Object
Returns:
Tcp/ip Socket

ovoid setSocket(ServerSocket* socket)
Sets Tcp/ip socket
Parameters:
socket - ServerSocket Object

oint getTimer()
Getter method for timer
Returns:
timer Integer Value of timer

ovoid setTimer(int timer)
Setter methods for timer
Parameters:
timer - Integer Value of timer

obool isSendUpdates()
Checks whether updates are sent to client
Returns:
boolean 'true' if updates are send else 'false'.

ovoid setSendUpdates(bool sendUpdates)
Sets the sendUpdates boolean
Parameters:
boolean - value for sendUpdates.


This class has no child classes.
Author:
Parikshit Thakur & team, Trace R&D Center
Version:
Revision: 1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.