Click or drag to resize

HttpServer Class

Provides a simple HTTP server that allows to accept WebSocket handshake requests.
Inheritance Hierarchy
SystemObject
  Sfs2X.WebSocketSharp.ServerHttpServer

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public class HttpServer

The HttpServer type exposes the following members.

Constructors
  NameDescription
Public methodHttpServer
Initializes a new instance of the HttpServer class.
Public methodHttpServer(Int32)
Initializes a new instance of the HttpServer class with the specified port.
Public methodHttpServer(String)
Initializes a new instance of the HttpServer class with the specified url.
Public methodHttpServer(Int32, Boolean)
Initializes a new instance of the HttpServer class with the specified port and secure.
Public methodHttpServer(IPAddress, Int32)
Initializes a new instance of the HttpServer class with the specified address and port.
Public methodHttpServer(IPAddress, Int32, Boolean)
Initializes a new instance of the HttpServer class with the specified address, port, and secure.
Top
Properties
  NameDescription
Public propertyAddress
Gets the IP address of the server.
Public propertyAuthenticationSchemes
Gets or sets the scheme used to authenticate the clients.
Public propertyDocumentRootPath
Gets or sets the path to the document folder of the server.
Public propertyIsListening
Gets a value indicating whether the server has started.
Public propertyIsSecure
Gets a value indicating whether secure connections are provided.
Public propertyKeepClean
Gets or sets a value indicating whether the server cleans up the inactive sessions periodically.
Public propertyLog
Gets the logging function for the server.
Public propertyPort
Gets the port of the server.
Public propertyRealm
Gets or sets the realm used for authentication.
Public propertyReuseAddress
Gets or sets a value indicating whether the server is allowed to be bound to an address that is already in use.
Public propertySslConfiguration
Gets the configuration for secure connection.
Public propertyUserCredentialsFinder
Gets or sets the delegate used to find the credentials for an identity.
Public propertyWaitTime
Gets or sets the time to wait for the response to the WebSocket Ping or Close.
Public propertyWebSocketServices
Gets the management function for the WebSocket services provided by the server.
Top
Methods
  NameDescription
Public methodAddWebSocketServiceTBehaviorWithNew(String)
Adds a WebSocket service with the specified behavior and path.
Public methodAddWebSocketServiceTBehaviorWithNew(String, ActionTBehaviorWithNew)
Adds a WebSocket service with the specified behavior, path, and initializer.
Public methodAddWebSocketServiceTBehavior(String, FuncTBehavior) Obsolete.
Adds a WebSocket service with the specified behavior, path, and creator.
Public methodGetFile Obsolete.
Gets the contents of the specified file from the document folder of the server.
Public methodRemoveWebSocketService
Removes a WebSocket service with the specified path.
Public methodStart
Starts receiving incoming requests.
Public methodStop
Stops receiving incoming requests.
Public methodStop(CloseStatusCode, String) Obsolete.
Stops receiving incoming requests and closes each connection.
Public methodStop(UInt16, String) Obsolete.
Stops receiving incoming requests and closes each connection.
Top
Events
  NameDescription
Public eventOnConnect
Occurs when the server receives an HTTP CONNECT request.
Public eventOnDelete
Occurs when the server receives an HTTP DELETE request.
Public eventOnGet
Occurs when the server receives an HTTP GET request.
Public eventOnHead
Occurs when the server receives an HTTP HEAD request.
Public eventOnOptions
Occurs when the server receives an HTTP OPTIONS request.
Public eventOnPost
Occurs when the server receives an HTTP POST request.
Public eventOnPut
Occurs when the server receives an HTTP PUT request.
Public eventOnTrace
Occurs when the server receives an HTTP TRACE request.
Top
Remarks
This class can provide multiple WebSocket services.
See Also