C# Class ALE.Tcp.WebSocket

Afficher le fichier Open project: blesh/ALE Class Usage Examples

Méthodes publiques

Свойство Type Description
ClientHandshake string
Encoding System.Text.Encoding
Server WebSocketServer

Méthodes publiques

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

Private Methods

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

Method Details

ProcessIncoming() public méthode

public ProcessIncoming ( byte buffer, int bytesRead ) : void
buffer byte
bytesRead int
Résultat void

Receive() public méthode

public Receive ( Action callback ) : void
callback Action
Résultat void

Send() public méthode

public Send ( string text, Action callback = null ) : void
text string
callback Action
Résultat void

SendUnencoded() public méthode

public SendUnencoded ( string text, Action callback = null ) : void
text string
callback Action
Résultat void

WebSocket() public méthode

public WebSocket ( WebSocketServer server, TcpClient tcp ) : System
server WebSocketServer
tcp System.Net.Sockets.TcpClient
Résultat System

Property Details

ClientHandshake public_oe property

public string ClientHandshake
Résultat string

Encoding public_oe property

public Encoding,System.Text Encoding
Résultat System.Text.Encoding

Server public_oe property

public WebSocketServer,ALE.Tcp Server
Résultat WebSocketServer