Provides the basic functions of the server that receives the WebSocket connection requests.
See Also: Inherited members from object.
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServerBase class. | |
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServerBase class that listens for incoming connection attempts on the specified WebSocket URL. | |
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServerBase class that listens for incoming connection attempts on the specified address, port, absPath and secure. |
[read-only] | Address | System.Net.IPAddress . Gets the local IP address on which to listen for incoming connection attempts. |
[read-only] | IsSecure | bool . Gets a value indicating whether the server provides secure connection. |
[read-only] | IsSelfHost | bool . Gets a value indicating whether the server is self host. |
[read-only] | Port | int . Gets the port on which to listen for incoming connection attempts. |
abstract
|
AcceptWebSocket
(WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext)Accepts a WebSocket connection request. |
|
|
Error
(string)Occurs the WebSocketServerBase.OnError event with the specified string. |
|
OnError | Occurs when the server gets an error. |
Initializes a new instance of the WebSocketSharp.Server.WebSocketServerBase class.
Syntax
protected WebSocketServerBase ()Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Initializes a new instance of the WebSocketSharp.Server.WebSocketServerBase class that listens for incoming connection attempts on the specified WebSocket URL.
Syntax
protected WebSocketServerBase (string url)Parameters
- url
- A string that contains a WebSocket URL.
Exceptions
Type Reason ArgumentNullException url is null. ArgumentException url is invalid. Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Initializes a new instance of the WebSocketSharp.Server.WebSocketServerBase class that listens for incoming connection attempts on the specified address, port, absPath and secure.
Syntax
Parameters
- address
- A System.Net.IPAddress that contains a local IP address.
- port
- An int that contains a port number.
- absPath
- A string that contains an absolute path.
- secure
- A bool that indicates providing a secure connection or not. (true indicates providing a secure connection.)
Exceptions
Type Reason ArgumentNullException Either address or absPath is null. ArgumentException absPath is invalid.
-or-
Pair of port and secure is invalid.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Accepts a WebSocket connection request.
Syntax
protected abstract void AcceptWebSocket (WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext context)Parameters
- context
- A WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext that contains the WebSocket connection request objects.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Gets the local IP address on which to listen for incoming connection attempts.
Syntax
public System.Net.IPAddress Address { get; }Value
A System.Net.IPAddress that contains a local IP address.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Gets or sets the WebSocket URL on which to listen for incoming connection attempts.
Syntax
protected Uri BaseUri { get; set; }Value
A Uri that contains a WebSocket URL.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Occurs the WebSocketServerBase.OnError event with the specified string.
Syntax
Parameters
- message
- A string that contains an error message.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Gets a value indicating whether the server provides secure connection.
Syntax
public bool IsSecure { get; }Value
true if the server provides secure connection; otherwise, false.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Gets a value indicating whether the server is self host.
Syntax
public bool IsSelfHost { get; }Value
true if the server is self host; otherwise, false.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Occurs when the server gets an error.
Syntax
public event EventHandler<WebSocketSharp.ErrorEventArgs> OnErrorRemarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Gets the port on which to listen for incoming connection attempts.
Syntax
public int Port { get; }Value
An int that contains a port number.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Starts to receive the WebSocket connection requests.
Syntax
public virtual void Start ()Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Stops receiving the WebSocket connection requests.
Syntax
public virtual void Stop ()Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)