C# 클래스 ALE.Tcp.WebSocket

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

공개 프로퍼티들

프로퍼티 타입 설명
ClientHandshake string
Encoding System.Text.Encoding
Server WebSocketServer

공개 메소드들

메소드 설명
ProcessIncoming ( byte buffer, int bytesRead ) : void
Receive ( Action callback ) : void
Send ( string text, Action callback = null ) : void
SendUnencoded ( string text, Action callback = null ) : void
WebSocket ( WebSocketServer server, TcpClient tcp ) : System

비공개 메소드들

메소드 설명
BeginRead ( ) : void
DecodeClientData ( byte bytes ) : string
EncodeServerData ( string text ) : byte[]
ProcessRead ( int bytesRead, ReadState state ) : void
ReadCallback ( IAsyncResult result ) : void
SendCallback ( IAsyncResult result ) : void
SendHandshake ( byte buffer, int bytesRead ) : void

메소드 상세

ProcessIncoming() 공개 메소드

public ProcessIncoming ( byte buffer, int bytesRead ) : void
buffer byte
bytesRead int
리턴 void

Receive() 공개 메소드

public Receive ( Action callback ) : void
callback Action
리턴 void

Send() 공개 메소드

public Send ( string text, Action callback = null ) : void
text string
callback Action
리턴 void

SendUnencoded() 공개 메소드

public SendUnencoded ( string text, Action callback = null ) : void
text string
callback Action
리턴 void

WebSocket() 공개 메소드

public WebSocket ( WebSocketServer server, TcpClient tcp ) : System
server WebSocketServer
tcp System.Net.Sockets.TcpClient
리턴 System

프로퍼티 상세

ClientHandshake 공개적으로 프로퍼티

public string ClientHandshake
리턴 string

Encoding 공개적으로 프로퍼티

public Encoding,System.Text Encoding
리턴 System.Text.Encoding

Server 공개적으로 프로퍼티

public WebSocketServer,ALE.Tcp Server
리턴 WebSocketServer