C# 클래스 Screenary.TransportClient

파일 보기 프로젝트 열기: Screenary/Screenary 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
RecvAll ( Socket socket, byte buffer, int offset, int size ) : void
SendAll ( Socket socket, byte buffer, int offset, int size ) : void
ThreadProc ( TransportClient client ) : void

메소드 상세

Connect() 공개 메소드

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

Disconnect() 공개 메소드

public Disconnect ( ) : bool
리턴 bool

RecvPDU() 공개 메소드

public RecvPDU ( ) : void
리턴 void

SendPDU() 공개 메소드

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

SetChannelDispatcher() 공개 메소드

public SetChannelDispatcher ( Screenary.ChannelDispatcher dispatcher ) : void
dispatcher Screenary.ChannelDispatcher
리턴 void

StartThread() 공개 메소드

public StartThread ( ) : void
리턴 void

StopThread() 공개 메소드

public StopThread ( ) : void
리턴 void

TransportClient() 공개 메소드

public TransportClient ( Screenary.ChannelDispatcher dispatcher ) : System
dispatcher Screenary.ChannelDispatcher
리턴 System

TransportClient() 공개 메소드

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

TransportClient() 공개 메소드

public TransportClient ( TcpClient tcpClient ) : System
tcpClient System.Net.Sockets.TcpClient
리턴 System

isConnected() 공개 메소드

public isConnected ( ) : bool
리턴 bool

isThreadAlive() 공개 메소드

public isThreadAlive ( ) : bool
리턴 bool