C# Class IMB3.TConnectionPlatform

Show file Open project: TNOCS/csTouch Class Usage Examples

Public Properties

Property Type Description
FClient System.Net.Sockets.TcpClient
MagicBytes byte[]

Protected Properties

Property Type Description
MagicBytesInt64 Int64

Public Methods

Method Description
ReadCommandsNonBlocking ( ) : void
ReadCommandsNonThreaded ( int aTimeOut ) : void

Protected Methods

Method Description
CloseLow ( ) : void
HandleCommand ( TCommands aCommand, TByteBuffer aPayload ) : void
OpenLow ( string aRemoteHost, int aRemotePort, int timeout ) : void
ReadBytesFromNetStream ( TByteBuffer aBuffer ) : int
WriteCommandLow ( byte aData, int aNumberOfBytes ) : void

Private Methods

Method Description
ReadCommand ( TCommands &aCommand, byte aFixedCommandPart, TByteBuffer aPayload, byte aPayloadCheck ) : bool
ReadCommands ( ) : void
getConnectionHashCode ( byte aNameUTF8 ) : Int32

Method Details

CloseLow() protected method

protected CloseLow ( ) : void
return void

HandleCommand() protected method

protected HandleCommand ( TCommands aCommand, TByteBuffer aPayload ) : void
aCommand TCommands
aPayload IMB3.ByteBuffers.TByteBuffer
return void

OpenLow() protected method

protected OpenLow ( string aRemoteHost, int aRemotePort, int timeout ) : void
aRemoteHost string
aRemotePort int
timeout int
return void

ReadBytesFromNetStream() protected method

protected ReadBytesFromNetStream ( TByteBuffer aBuffer ) : int
aBuffer TByteBuffer
return int

ReadCommandsNonBlocking() public method

public ReadCommandsNonBlocking ( ) : void
return void

ReadCommandsNonThreaded() public method

public ReadCommandsNonThreaded ( int aTimeOut ) : void
aTimeOut int
return void

WriteCommandLow() protected method

protected WriteCommandLow ( byte aData, int aNumberOfBytes ) : void
aData byte
aNumberOfBytes int
return void

Property Details

FClient public property

public TcpClient,System.Net.Sockets FClient
return System.Net.Sockets.TcpClient

MagicBytes public static property

public static byte[] MagicBytes
return byte[]

MagicBytesInt64 protected property

protected Int64 MagicBytesInt64
return Int64