C# Class RabbitMQ.Client.TcpClientAdapter

Simple wrapper around TcpClient.
Inheritance: ITcpClient
Exibir arquivo Open project: rabbitmq/rabbitmq-dotnet-client Class Usage Examples

Protected Properties

Property Type Description
sock Socket

Public Methods

Method Description
Close ( ) : void
ConnectAsync ( string host, int port ) : System.Threading.Tasks.Task
GetStream ( ) : NetworkStream
TcpClientAdapter ( Socket socket ) : System

Private Methods

Method Description
AssertSocket ( ) : void

Method Details

Close() public method

public Close ( ) : void
return void

ConnectAsync() public method

public ConnectAsync ( string host, int port ) : System.Threading.Tasks.Task
host string
port int
return System.Threading.Tasks.Task

GetStream() public method

public GetStream ( ) : NetworkStream
return NetworkStream

TcpClientAdapter() public method

public TcpClientAdapter ( Socket socket ) : System
socket Socket
return System

Property Details

sock protected_oe property

protected Socket sock
return Socket