C# 클래스 WireBus.WireBusClient

A WireBus client, responsible for wrapping a TCP/IP connection and serializing the data going over the bus.
상속: IDisposable
파일 보기 프로젝트 열기: bytenik/WireBus.NET 1 사용 예제들

공개 메소드들

메소드 설명
Connect ( IPAddress host, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : WireBusClient

Connect to a peer, returning a new bus.

Connect ( string host, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : WireBusClient

Connect to a peer, returning a new bus.

ConnectAsync ( IPAddress host, int port, CancellationToken token, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( IPAddress host, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( IPAddress host, int port, System.TimeSpan timeout, CancellationToken token, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( IPAddress host, int port, System.TimeSpan timeout, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( IPAddress host, int port, int millisecondsTimeout, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( string host, int port, CancellationToken token, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( string host, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( string host, int port, System.TimeSpan timeout, CancellationToken token, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( string host, int port, System.TimeSpan timeout, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

ConnectAsync ( string host, int port, int millisecondsTimeout, ConnectionSemantics semantics = newConnectionSemantics() ) : Task

Connect to a peer, returning a new bus.

Disconnect ( ) : void

Disconnect from the peer

Dispose ( ) : void

Dispose of the client

Receive ( ) : WireContext

Receive a message from the network

ReceiveAsync ( ) : Task

Receive a message from the network

ReceiveAsync ( CancellationToken token ) : Task

Receive a message from the network

ReceiveAsync ( System.TimeSpan timeout ) : Task

Receive a message from the network

ReceiveAsync ( System.TimeSpan timeout, CancellationToken token ) : Task

Receive a message from the network

ReceiveAsync ( int timeoutMilliseconds ) : Task

Receive a message from the network

Send ( byte message ) : void

Send a message to the peer.

SendAsync ( byte message ) : Task

Send a message to the peer.

SendRequest ( byte message ) : WireContext

Send a message to the peer and wait for a reply

SendRequestAsync ( byte message ) : Task

Send a message to the peer and wait for a reply

비공개 메소드들

메소드 설명
GetNextId ( ) : uint
InternalSendAsync ( byte message, uint id ) : Task
ReceiveMessages ( ) : void
SocketReceiveAsync ( Socket s, byte buffer, int start, int length ) : Task
WireBusClient ( Socket socket ) : System
WireBusClient ( Socket socket, ConnectionSemantics semantics ) : System

메소드 상세

Connect() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static Connect ( IPAddress host, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : WireBusClient
host System.Net.IPAddress the target host
port int the target port
semantics ConnectionSemantics the semantics of the connection
리턴 WireBusClient

Connect() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static Connect ( string host, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : WireBusClient
host string the target host
port int the target port
semantics ConnectionSemantics the semantics of the connection
리턴 WireBusClient

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( IPAddress host, int port, CancellationToken token, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host System.Net.IPAddress the target host
port int the target port
token System.Threading.CancellationToken token used to cancel connection attempt
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( IPAddress host, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host System.Net.IPAddress the target host
port int the target port
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( IPAddress host, int port, System.TimeSpan timeout, CancellationToken token, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host System.Net.IPAddress the target host
port int the target port
timeout System.TimeSpan the timeout after which to give up
token System.Threading.CancellationToken token used to cancel connection attempt
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( IPAddress host, int port, System.TimeSpan timeout, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host System.Net.IPAddress the target host
port int the target port
timeout System.TimeSpan the timeout after which to give up
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( IPAddress host, int port, int millisecondsTimeout, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host System.Net.IPAddress the target host
port int the target port
millisecondsTimeout int the timeout in milliseconds after which to give up
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( string host, int port, CancellationToken token, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host string the target host
port int the target port
token System.Threading.CancellationToken token used to cancel connection attempt
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( string host, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host string the target host
port int the target port
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( string host, int port, System.TimeSpan timeout, CancellationToken token, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host string the target host
port int the target port
timeout System.TimeSpan the timeout after which to give up
token System.Threading.CancellationToken token used to cancel connection attempt
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( string host, int port, System.TimeSpan timeout, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host string the target host
port int the target port
timeout System.TimeSpan the timeout after which to give up
semantics ConnectionSemantics the semantics of the connection
리턴 Task

ConnectAsync() 공개 정적인 메소드

Connect to a peer, returning a new bus.
public static ConnectAsync ( string host, int port, int millisecondsTimeout, ConnectionSemantics semantics = newConnectionSemantics() ) : Task
host string the target host
port int the target port
millisecondsTimeout int the timeout in milliseconds after which to give up
semantics ConnectionSemantics the semantics of the connection
리턴 Task

Disconnect() 공개 메소드

Disconnect from the peer
public Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

Dispose of the client
public Dispose ( ) : void
리턴 void

Receive() 공개 메소드

Receive a message from the network
public Receive ( ) : WireContext
리턴 WireContext

ReceiveAsync() 공개 메소드

Receive a message from the network
public ReceiveAsync ( ) : Task
리턴 Task

ReceiveAsync() 공개 메소드

Receive a message from the network
public ReceiveAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

ReceiveAsync() 공개 메소드

Receive a message from the network
public ReceiveAsync ( System.TimeSpan timeout ) : Task
timeout System.TimeSpan
리턴 Task

ReceiveAsync() 공개 메소드

Receive a message from the network
public ReceiveAsync ( System.TimeSpan timeout, CancellationToken token ) : Task
timeout System.TimeSpan
token System.Threading.CancellationToken
리턴 Task

ReceiveAsync() 공개 메소드

Receive a message from the network
public ReceiveAsync ( int timeoutMilliseconds ) : Task
timeoutMilliseconds int
리턴 Task

Send() 공개 메소드

Send a message to the peer.
public Send ( byte message ) : void
message byte the message to send
리턴 void

SendAsync() 공개 메소드

Send a message to the peer.
public SendAsync ( byte message ) : Task
message byte the message to send
리턴 Task

SendRequest() 공개 메소드

Send a message to the peer and wait for a reply
public SendRequest ( byte message ) : WireContext
message byte the message to send
리턴 WireContext

SendRequestAsync() 공개 메소드

Send a message to the peer and wait for a reply
public SendRequestAsync ( byte message ) : Task
message byte the message to send
리턴 Task