C# Class FloatingQueue.Common.TCP.TCPClientBase

Inheritance: CommunicationObjectBase, ITCPClient
显示文件 Open project: eleks/FloatingQueuePoC

Public Methods

Method Description
Close ( ) : void
Initialize ( EndpointAddress endpointAddress ) : void
Open ( ) : void

Protected Methods

Method Description
CreateRequest ( string command ) : TCPBinaryWriter
HandleErrorResponse ( TCPBinaryReader response ) : Exception
SendReceive ( TCPBinaryWriter request ) : TCPBinaryReader

Private Methods

Method Description
IsConnected ( ) : bool
OpenIfClosed ( ) : void
ReadBuffer ( byte buf ) : int
SendCloseCommand ( ) : void

Method Details

Close() public method

public Close ( ) : void
return void

CreateRequest() protected method

protected CreateRequest ( string command ) : TCPBinaryWriter
command string
return TCPBinaryWriter

HandleErrorResponse() protected method

protected HandleErrorResponse ( TCPBinaryReader response ) : Exception
response TCPBinaryReader
return System.Exception

Initialize() public method

public Initialize ( EndpointAddress endpointAddress ) : void
endpointAddress System.ServiceModel.EndpointAddress
return void

Open() public method

public Open ( ) : void
return void

SendReceive() protected method

protected SendReceive ( TCPBinaryWriter request ) : TCPBinaryReader
request TCPBinaryWriter
return TCPBinaryReader