C# Class Screenary.TransportClient

Afficher le fichier Open project: Screenary/Screenary Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Connect ( string hostname, Int32 port ) : bool
hostname string
port System.Int32
Résultat bool

Disconnect() public méthode

public Disconnect ( ) : bool
Résultat bool

RecvPDU() public méthode

public RecvPDU ( ) : void
Résultat void

SendPDU() public méthode

public SendPDU ( byte buffer, UInt16 channelId, byte pduType ) : void
buffer byte
channelId System.UInt16
pduType byte
Résultat void

SetChannelDispatcher() public méthode

public SetChannelDispatcher ( Screenary.ChannelDispatcher dispatcher ) : void
dispatcher Screenary.ChannelDispatcher
Résultat void

StartThread() public méthode

public StartThread ( ) : void
Résultat void

StopThread() public méthode

public StopThread ( ) : void
Résultat void

TransportClient() public méthode

public TransportClient ( Screenary.ChannelDispatcher dispatcher ) : System
dispatcher Screenary.ChannelDispatcher
Résultat System

TransportClient() public méthode

public TransportClient ( Screenary.ChannelDispatcher dispatcher, TcpClient tcpClient ) : System
dispatcher Screenary.ChannelDispatcher
tcpClient System.Net.Sockets.TcpClient
Résultat System

TransportClient() public méthode

public TransportClient ( TcpClient tcpClient ) : System
tcpClient System.Net.Sockets.TcpClient
Résultat System

isConnected() public méthode

public isConnected ( ) : bool
Résultat bool

isThreadAlive() public méthode

public isThreadAlive ( ) : bool
Résultat bool