C# 클래스 m.Http.Backend.Tcp.WebSocketSession

상속: TcpSessionBase, IWebSocketSession
파일 보기 프로젝트 열기: joongonn/mHttp 1 사용 예제들

공개 메소드들

메소드 설명
CloseSession ( ushort statusCode, string reason = null ) : void
Dispose ( ) : void
ReadNextMessageAsync ( ) : Task
SendBinary ( byte blob ) : void
SendClose ( ushort statusCode, string reason = null ) : void
SendPing ( ) : void
SendPong ( ) : void
SendText ( string text ) : void
WebSocketSession ( long id, TcpClient tcpClient, Stream stream, Action onBytesReceived, Action onBytesSent, System.Action onDisposed, int initialReadBufferSize, int readTimeoutMs, int writeTimeoutMs ) : System

비공개 메소드들

메소드 설명
TryDecodeNextMessage ( OpCode &opCode, byte &messagePayload ) : bool
Write ( OpCode opCode, byte payload = null ) : void

메소드 상세

CloseSession() 공개 메소드

public CloseSession ( ushort statusCode, string reason = null ) : void
statusCode ushort
reason string
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ReadNextMessageAsync() 공개 메소드

public ReadNextMessageAsync ( ) : Task
리턴 Task

SendBinary() 공개 메소드

public SendBinary ( byte blob ) : void
blob byte
리턴 void

SendClose() 공개 메소드

public SendClose ( ushort statusCode, string reason = null ) : void
statusCode ushort
reason string
리턴 void

SendPing() 공개 메소드

public SendPing ( ) : void
리턴 void

SendPong() 공개 메소드

public SendPong ( ) : void
리턴 void

SendText() 공개 메소드

public SendText ( string text ) : void
text string
리턴 void

WebSocketSession() 공개 메소드

public WebSocketSession ( long id, TcpClient tcpClient, Stream stream, Action onBytesReceived, Action onBytesSent, System.Action onDisposed, int initialReadBufferSize, int readTimeoutMs, int writeTimeoutMs ) : System
id long
tcpClient System.Net.Sockets.TcpClient
stream Stream
onBytesReceived Action
onBytesSent Action
onDisposed System.Action
initialReadBufferSize int
readTimeoutMs int
writeTimeoutMs int
리턴 System