C# Class Screenary.TransportClient

ファイルを表示 Open project: Screenary/Screenary Class Usage Examples

Public Methods

Method Description
Connect ( string hostname, Int32 port ) : bool
Disconnect ( ) : bool
RecvPDU ( ) : void
SendPDU ( byte buffer, UInt16 channelId, byte pduType ) : void
SetChannelDispatcher ( Screenary.ChannelDispatcher dispatcher ) : void
StartThread ( ) : void
StopThread ( ) : void
TransportClient ( Screenary.ChannelDispatcher dispatcher ) : System
TransportClient ( Screenary.ChannelDispatcher dispatcher, TcpClient tcpClient ) : System
TransportClient ( TcpClient tcpClient ) : System
isConnected ( ) : bool
isThreadAlive ( ) : bool

Private Methods

Method Description
RecvAll ( Socket socket, byte buffer, int offset, int size ) : void
SendAll ( Socket socket, byte buffer, int offset, int size ) : void
ThreadProc ( TransportClient client ) : void

Method Details

Connect() public method

public Connect ( string hostname, Int32 port ) : bool
hostname string
port System.Int32
return bool

Disconnect() public method

public Disconnect ( ) : bool
return bool

RecvPDU() public method

public RecvPDU ( ) : void
return void

SendPDU() public method

public SendPDU ( byte buffer, UInt16 channelId, byte pduType ) : void
buffer byte
channelId System.UInt16
pduType byte
return void

SetChannelDispatcher() public method

public SetChannelDispatcher ( Screenary.ChannelDispatcher dispatcher ) : void
dispatcher Screenary.ChannelDispatcher
return void

StartThread() public method

public StartThread ( ) : void
return void

StopThread() public method

public StopThread ( ) : void
return void

TransportClient() public method

public TransportClient ( Screenary.ChannelDispatcher dispatcher ) : System
dispatcher Screenary.ChannelDispatcher
return System

TransportClient() public method

public TransportClient ( Screenary.ChannelDispatcher dispatcher, TcpClient tcpClient ) : System
dispatcher Screenary.ChannelDispatcher
tcpClient System.Net.Sockets.TcpClient
return System

TransportClient() public method

public TransportClient ( TcpClient tcpClient ) : System
tcpClient System.Net.Sockets.TcpClient
return System

isConnected() public method

public isConnected ( ) : bool
return bool

isThreadAlive() public method

public isThreadAlive ( ) : bool
return bool