C# Class VideoCallServer.TCPSocketListener

TCPSocketListener is the direct socket comunication server with client. into is implemented the protocol.
Datei anzeigen Open project: AnthonyNystrom/MobiVU Class Usage Examples

Public Properties

Property Type Description
m_clientSocket Socket

Public Methods

Method Description
IsMarkedForDeletion ( ) : bool

Method that returns the state of this object i.e. whether this object is marked for deletion or not.

Parser1 ( Byte byBuf, int iLen ) : void
Parser2 ( Byte data, int iLen ) : void
RemoveUsrReference ( ) : void
SendPacket ( int iCmd, byte byBuff, int iLenBuff, Socket sck ) : void
StartSocketListener ( ) : bool

Method that starts SocketListener Thread.

StopSocketListener ( ) : void

Method that stops Client SocketListening Thread.

TCPSocketListener ( Socket clientSocket, TCPServer server ) : System

Client Socket Listener Constructor.

Private Methods

Method Description
CheckTimeOut ( object o ) : void

Method that checks whether there are any client calls for the last x seconds or not. If not this client SocketListener will be closed.

SocketListenerThreadPhone ( ) : void

Thread method that does the communication to the client phone. This thread tries to receive from phone and forward to proxy

Method Details

IsMarkedForDeletion() public method

Method that returns the state of this object i.e. whether this object is marked for deletion or not.
public IsMarkedForDeletion ( ) : bool
return bool

Parser1() public method

public Parser1 ( Byte byBuf, int iLen ) : void
byBuf Byte
iLen int
return void

Parser2() public method

public Parser2 ( Byte data, int iLen ) : void
data Byte
iLen int
return void

RemoveUsrReference() public method

public RemoveUsrReference ( ) : void
return void

SendPacket() public method

public SendPacket ( int iCmd, byte byBuff, int iLenBuff, Socket sck ) : void
iCmd int
byBuff byte
iLenBuff int
sck System.Net.Sockets.Socket
return void

StartSocketListener() public method

Method that starts SocketListener Thread.
public StartSocketListener ( ) : bool
return bool

StopSocketListener() public method

Method that stops Client SocketListening Thread.
public StopSocketListener ( ) : void
return void

TCPSocketListener() public method

Client Socket Listener Constructor.
public TCPSocketListener ( Socket clientSocket, TCPServer server ) : System
clientSocket System.Net.Sockets.Socket Phone connection
server TCPServer
return System

Property Details

m_clientSocket public_oe property

Variables that are accessed by other classes indirectly.
public Socket m_clientSocket
return Socket