C# Class WebSocketSharp.WsStream

Inheritance: IDisposable
Afficher le fichier Open project: NIAEFEUP/Kommando Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void
Dispose ( ) : void
ReadFrame ( ) : WsFrame
ReadFrameAsync ( Action completed ) : void
ReadHandshake ( ) : string[]
WriteFrame ( WsFrame frame ) : bool
WriteHandshake ( HandshakeBase handshake ) : bool

Private Methods

Méthode Description
CreateClientStream ( TcpClient client, bool secure, string host, System validationCallback ) : WsStream
CreateServerStream ( HttpListenerContext context ) : WsStream
CreateServerStream ( TcpClient client, bool secure, X509Certificate cert ) : WsStream
WsStream ( NetworkStream innerStream ) : System
WsStream ( WebSocketSharp.Net.Security.SslStream innerStream ) : System
WsStream ( Stream innerStream, bool secure ) : System
write ( byte data ) : bool

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ReadFrame() public méthode

public ReadFrame ( ) : WsFrame
Résultat WsFrame

ReadFrameAsync() public méthode

public ReadFrameAsync ( Action completed ) : void
completed Action
Résultat void

ReadHandshake() public méthode

public ReadHandshake ( ) : string[]
Résultat string[]

WriteFrame() public méthode

public WriteFrame ( WsFrame frame ) : bool
frame WsFrame
Résultat bool

WriteHandshake() public méthode

public WriteHandshake ( HandshakeBase handshake ) : bool
handshake HandshakeBase
Résultat bool