C# 클래스 WebSocket4Net.WebSocket

상속: IDisposable
파일 보기 프로젝트 열기: kerryjiang/WebSocket4Net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CheckCloseHandshake void
ClearTimer void
CloseWithoutHandshake void
CreateClient SuperSocket.ClientEngine.TcpClientSession
CreateSecureClient SuperSocket.ClientEngine.TcpClientSession
CreateSecureTcpSession SuperSocket.ClientEngine.TcpClientSession
EnsureWebSocketOpen bool
FireClosed void
FireDataReceived void
FireError void
FireMessageReceived void
GetAvailableProcessor bool
GetProtocolProcessor IProtocolProcessor
Initialize void
OnClosed void
OnDataReceived void
OnError void
OnError void
OnPingTimerCallback void
ResolveUri System.Net.EndPoint
WebSocket System

공개 메소드들

메소드 설명
Close ( ) : void
Close ( int statusCode, string reason ) : void
Close ( string reason ) : void
Dispose ( ) : void
OnConnected ( ) : void
Open ( ) : void
Send ( IList segments ) : void
Send ( byte data, int offset, int length ) : void
Send ( string message ) : void
WebSocket ( string uri, string subProtocol = "", string>.List cookies = null, string>.List customHeaderItems = null, string userAgent = "", string origin = "", WebSocketVersion version = WebSocketVersion.None, EndPoint httpConnectProxy = null, int receiveBufferSize ) : System
WebSocket ( string uri, string subProtocol, string cookies, string>.List customHeaderItems = null, string userAgent = "", string origin = "", WebSocketVersion version = WebSocketVersion.None, EndPoint httpConnectProxy = null, int receiveBufferSize ) : System
client_Closed ( object sender, EventArgs e ) : void
client_Connected ( object sender, EventArgs e ) : void
client_DataReceived ( object sender, DataEventArgs e ) : void
client_Error ( object sender, ErrorEventArgs e ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
ExecuteCommand ( WebSocketCommandInfo commandInfo ) : void
OnHandshaked ( ) : void

비공개 메소드들

메소드 설명
CheckCloseHandshake ( object state ) : void
ClearTimer ( ) : void
CloseWithoutHandshake ( ) : void
CreateClient ( string uri ) : TcpClientSession
CreateSecureClient ( string uri ) : TcpClientSession
CreateSecureTcpSession ( ) : TcpClientSession
EnsureWebSocketOpen ( ) : bool
FireClosed ( ) : void
FireDataReceived ( byte data ) : void
FireError ( Exception error ) : void
FireMessageReceived ( string message ) : void
GetAvailableProcessor ( int availableVersions ) : bool
GetProtocolProcessor ( WebSocketVersion version ) : IProtocolProcessor
Initialize ( string uri, string subProtocol, string>.List cookies, string>.List customHeaderItems, string userAgent, string origin, WebSocketVersion version, EndPoint httpConnectProxy, int receiveBufferSize ) : void
OnClosed ( ) : void
OnDataReceived ( byte data, int offset, int length ) : void
OnError ( SuperSocket.ClientEngine.ErrorEventArgs e ) : void
OnError ( Exception e ) : void
OnPingTimerCallback ( object state ) : void
ResolveUri ( string uri, int defaultPort, int &port ) : EndPoint
WebSocket ( ) : System

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

Close() 공개 메소드

public Close ( int statusCode, string reason ) : void
statusCode int
reason string
리턴 void

Close() 공개 메소드

public Close ( string reason ) : void
reason string
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

ExecuteCommand() 보호된 메소드

protected ExecuteCommand ( WebSocketCommandInfo commandInfo ) : void
commandInfo WebSocketCommandInfo
리턴 void

OnConnected() 공개 메소드

public OnConnected ( ) : void
리턴 void

OnHandshaked() 보호된 메소드

protected OnHandshaked ( ) : void
리턴 void

Open() 공개 메소드

public Open ( ) : void
리턴 void

Send() 공개 메소드

public Send ( IList segments ) : void
segments IList
리턴 void

Send() 공개 메소드

public Send ( byte data, int offset, int length ) : void
data byte
offset int
length int
리턴 void

Send() 공개 메소드

public Send ( string message ) : void
message string
리턴 void

WebSocket() 공개 메소드

public WebSocket ( string uri, string subProtocol = "", string>.List cookies = null, string>.List customHeaderItems = null, string userAgent = "", string origin = "", WebSocketVersion version = WebSocketVersion.None, EndPoint httpConnectProxy = null, int receiveBufferSize ) : System
uri string
subProtocol string
cookies string>.List
customHeaderItems string>.List
userAgent string
origin string
version WebSocketVersion
httpConnectProxy System.Net.EndPoint
receiveBufferSize int
리턴 System

WebSocket() 공개 메소드

public WebSocket ( string uri, string subProtocol, string cookies, string>.List customHeaderItems = null, string userAgent = "", string origin = "", WebSocketVersion version = WebSocketVersion.None, EndPoint httpConnectProxy = null, int receiveBufferSize ) : System
uri string
subProtocol string
cookies string
customHeaderItems string>.List
userAgent string
origin string
version WebSocketVersion
httpConnectProxy EndPoint
receiveBufferSize int
리턴 System

client_Closed() 공개 메소드

public client_Closed ( object sender, EventArgs e ) : void
sender object
e EventArgs
리턴 void

client_Connected() 공개 메소드

public client_Connected ( object sender, EventArgs e ) : void
sender object
e EventArgs
리턴 void

client_DataReceived() 공개 메소드

public client_DataReceived ( object sender, DataEventArgs e ) : void
sender object
e DataEventArgs
리턴 void

client_Error() 공개 메소드

public client_Error ( object sender, ErrorEventArgs e ) : void
sender object
e ErrorEventArgs
리턴 void