C# Class WebSocketSharp.WsStream

Inheritance: IDisposable
Mostra file Open project: NIAEFEUP/Kommando Class Usage Examples

Public Methods

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

Private Methods

Method 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 method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

ReadFrame() public method

public ReadFrame ( ) : WsFrame
return WsFrame

ReadFrameAsync() public method

public ReadFrameAsync ( Action completed ) : void
completed Action
return void

ReadHandshake() public method

public ReadHandshake ( ) : string[]
return string[]

WriteFrame() public method

public WriteFrame ( WsFrame frame ) : bool
frame WsFrame
return bool

WriteHandshake() public method

public WriteHandshake ( HandshakeBase handshake ) : bool
handshake HandshakeBase
return bool