C# Class OpenQA.Selenium.Safari.Internal.WebSocketServer

Provides an implementation of a WebSocket server.
Inheritance: IWebSocketServer
Afficher le fichier Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Releases all resources used by the WebSocketServer.

Start ( ) : void

Starts the server.

WebSocketServer ( int port, string location ) : System

Initializes a new instance of the WebSocketServer class.

WebSocketServer ( string location ) : System

Initializes a new instance of the WebSocketServer class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the SocketWrapper and optionally releases the managed resources.

OnConnectionClosed ( OpenQA.Selenium.Safari.Internal.ConnectionEventArgs e ) : void

Raises the ConnectionClosed event.

OnConnectionOpened ( OpenQA.Selenium.Safari.Internal.ConnectionEventArgs e ) : void

Raises the ConnectionOpened event.

OnErrorOccurred ( OpenQA.Selenium.Safari.Internal.ErrorEventArgs e ) : void

Raises the ErrorOccurred event.

OnMessageReceived ( OpenQA.Selenium.Safari.Internal.TextMessageHandledEventArgs e ) : void

Raises the MessageReceived event.

OnStandardHttpRequestReceived ( OpenQA.Selenium.Safari.Internal.StandardHttpRequestReceivedEventArgs e ) : void

Raises the StandardHttpRequestReceived event.

Private Methods

Méthode Description
ConnectionBinaryMessageReceivedEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.BinaryMessageHandledEventArgs e ) : void
ConnectionClosedEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.ConnectionEventArgs e ) : void
ConnectionErrorEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.ErrorEventArgs e ) : void
ConnectionMessageReceivedEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.TextMessageHandledEventArgs e ) : void
ConnectionOpenedEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.ConnectionEventArgs e ) : void
ConnectionStandardHttpRequestReceivedEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.StandardHttpRequestReceivedEventArgs e ) : void
ListenForClients ( ) : void
ListenerSocketAcceptedEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.AcceptEventArgs e ) : void
OnClientConnect ( ISocket clientSocket ) : void
SocketAuthenticatedEventHandler ( object sender, EventArgs e ) : void

Method Details

Dispose() public méthode

Releases all resources used by the WebSocketServer.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases the unmanaged resources used by the SocketWrapper and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool to release managed and resources; /// to only release unmanaged resources.
Résultat void

OnConnectionClosed() protected méthode

Raises the ConnectionClosed event.
protected OnConnectionClosed ( OpenQA.Selenium.Safari.Internal.ConnectionEventArgs e ) : void
e OpenQA.Selenium.Safari.Internal.ConnectionEventArgs A that contains the event data.
Résultat void

OnConnectionOpened() protected méthode

Raises the ConnectionOpened event.
protected OnConnectionOpened ( OpenQA.Selenium.Safari.Internal.ConnectionEventArgs e ) : void
e OpenQA.Selenium.Safari.Internal.ConnectionEventArgs A that contains the event data.
Résultat void

OnErrorOccurred() protected méthode

Raises the ErrorOccurred event.
protected OnErrorOccurred ( OpenQA.Selenium.Safari.Internal.ErrorEventArgs e ) : void
e OpenQA.Selenium.Safari.Internal.ErrorEventArgs An that contains the event data.
Résultat void

OnMessageReceived() protected méthode

Raises the MessageReceived event.
protected OnMessageReceived ( OpenQA.Selenium.Safari.Internal.TextMessageHandledEventArgs e ) : void
e OpenQA.Selenium.Safari.Internal.TextMessageHandledEventArgs A that contains the event data.
Résultat void

OnStandardHttpRequestReceived() protected méthode

Raises the StandardHttpRequestReceived event.
protected OnStandardHttpRequestReceived ( OpenQA.Selenium.Safari.Internal.StandardHttpRequestReceivedEventArgs e ) : void
e OpenQA.Selenium.Safari.Internal.StandardHttpRequestReceivedEventArgs A that contains the event data.
Résultat void

Start() public méthode

Starts the server.
public Start ( ) : void
Résultat void

WebSocketServer() public méthode

Initializes a new instance of the WebSocketServer class.
public WebSocketServer ( int port, string location ) : System
port int The port on which to listen for connections.
location string The location at which to listen for connections.
Résultat System

WebSocketServer() public méthode

Initializes a new instance of the WebSocketServer class.
public WebSocketServer ( string location ) : System
location string The location at which to listen for connections.
Résultat System