C# 클래스 WebSocketSharp.Server.WebSocketServerBase

Provides the basic functions of the server that receives the WebSocket connection requests.
The WebSocketServerBase class is an abstract class.
파일 보기 프로젝트 열기: NIAEFEUP/Kommando

공개 메소드들

메소드 설명
Start ( ) : void

Starts to receive the WebSocket connection requests.

Stop ( ) : void

Stops receiving the WebSocket connection requests.

보호된 메소드들

메소드 설명
AcceptWebSocket ( TcpListenerWebSocketContext context ) : void

Accepts a WebSocket connection request.

WebSocketServerBase ( ) : System

Initializes a new instance of the WebSocketServerBase class.

This constructor initializes a new instance of this class as non self hosted server.

WebSocketServerBase ( IPAddress address, int port, string servicePath, bool secure ) : System

Initializes a new instance of the WebSocketServerBase class that listens for incoming connection attempts on the specified address, port, servicePath and secure.

WebSocketServerBase ( System.Logger logger ) : System

Initializes a new instance of the WebSocketServerBase class with the specified logger.

This constructor initializes a new instance of this class as non self hosted server.

WebSocketServerBase ( string url ) : System

Initializes a new instance of the WebSocketServerBase class that listens for incoming connection attempts on the specified WebSocket URL.

비공개 메소드들

메소드 설명
init ( ) : void
init ( Uri uri ) : void
processRequestAsync ( TcpClient client ) : void
receiveRequest ( ) : void
startReceiveRequestThread ( ) : void
tryCreateUri ( string uriString, Uri &result, string &message ) : bool

메소드 상세

AcceptWebSocket() 보호된 추상적인 메소드

Accepts a WebSocket connection request.
protected abstract AcceptWebSocket ( TcpListenerWebSocketContext context ) : void
context WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext /// A that contains the WebSocket connection request objects. ///
리턴 void

Start() 공개 메소드

Starts to receive the WebSocket connection requests.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops receiving the WebSocket connection requests.
public Stop ( ) : void
리턴 void

WebSocketServerBase() 보호된 메소드

Initializes a new instance of the WebSocketServerBase class.
This constructor initializes a new instance of this class as non self hosted server.
protected WebSocketServerBase ( ) : System
리턴 System

WebSocketServerBase() 보호된 메소드

Initializes a new instance of the WebSocketServerBase class that listens for incoming connection attempts on the specified address, port, servicePath and secure.
/// Either or is . /// /// is 0 or less, or 65536 or greater. /// /// /// is invalid. /// /// /// -or- /// /// /// Pair of and is invalid. /// ///
protected WebSocketServerBase ( IPAddress address, int port, string servicePath, bool secure ) : System
address System.Net.IPAddress /// A that contains a local IP address. ///
port int /// An that contains a port number. ///
servicePath string /// A that contains an absolute path. ///
secure bool /// A that indicates providing a secure connection or not. /// (true indicates providing a secure connection.) ///
리턴 System

WebSocketServerBase() 보호된 메소드

Initializes a new instance of the WebSocketServerBase class with the specified logger.
This constructor initializes a new instance of this class as non self hosted server.
protected WebSocketServerBase ( System.Logger logger ) : System
logger System.Logger /// A that provides the logging functions. ///
리턴 System

WebSocketServerBase() 보호된 메소드

Initializes a new instance of the WebSocketServerBase class that listens for incoming connection attempts on the specified WebSocket URL.
/// is . /// /// is invalid. ///
protected WebSocketServerBase ( string url ) : System
url string /// A that contains a WebSocket URL. ///
리턴 System