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

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

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

Releases all resources used by the WebSocketServer.
public Dispose ( ) : void
return void

Dispose() protected method

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.
return void

OnConnectionClosed() protected method

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.
return void

OnConnectionOpened() protected method

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.
return void

OnErrorOccurred() protected method

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.
return void

OnMessageReceived() protected method

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.
return void

OnStandardHttpRequestReceived() protected method

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.
return void

Start() public method

Starts the server.
public Start ( ) : void
return void

WebSocketServer() public method

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.
return System

WebSocketServer() public method

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