C# Класс VideoCallServer.TCPSocketListener

TCPSocketListener is the direct socket comunication server with client. into is implemented the protocol.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
m_clientSocket Socket

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

IsMarkedForDeletion() публичный Метод

Method that returns the state of this object i.e. whether this object is marked for deletion or not.
public IsMarkedForDeletion ( ) : bool
Результат bool

Parser1() публичный Метод

public Parser1 ( Byte byBuf, int iLen ) : void
byBuf Byte
iLen int
Результат void

Parser2() публичный Метод

public Parser2 ( Byte data, int iLen ) : void
data Byte
iLen int
Результат void

RemoveUsrReference() публичный Метод

public RemoveUsrReference ( ) : void
Результат void

SendPacket() публичный Метод

public SendPacket ( int iCmd, byte byBuff, int iLenBuff, Socket sck ) : void
iCmd int
byBuff byte
iLenBuff int
sck System.Net.Sockets.Socket
Результат void

StartSocketListener() публичный Метод

Method that starts SocketListener Thread.
public StartSocketListener ( ) : bool
Результат bool

StopSocketListener() публичный Метод

Method that stops Client SocketListening Thread.
public StopSocketListener ( ) : void
Результат void

TCPSocketListener() публичный Метод

Client Socket Listener Constructor.
public TCPSocketListener ( Socket clientSocket, TCPServer server ) : System
clientSocket System.Net.Sockets.Socket Phone connection
server TCPServer
Результат System

Описание свойств

m_clientSocket публичное свойство

Variables that are accessed by other classes indirectly.
public Socket m_clientSocket
Результат Socket