My Project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Properties | Events | List of all members
RconListener Class Reference
Inheritance diagram for RconListener:
WebSocketSharp.Server.WebSocketBehavior WebSocketListener.IWebSocketConnection WebSocketSharp.Server.IWebSocketSession

Public Member Functions

new void Send (byte[] buffer)
 
new void Send (string data)
 
new void Close ()
 
void Send (byte[] buffer)
 
void Close ()
 

Public Attributes

RconSocket rcon
 
bool verified
 

Static Public Attributes

static readonly object logLock = new object()
 

Protected Member Functions

override void OnOpen ()
 Called when the WebSocket connection for a session has been established.
 
override void OnMessage (MessageEventArgs e)
 Called when the WebSocket interface for a session receives a message.
 
override void OnError (ErrorEventArgs e)
 Called when the WebSocket interface for a session gets an error.
 
override void OnClose (CloseEventArgs e)
 Called when the WebSocket connection for a session has been closed.
 
- Protected Member Functions inherited from WebSocketSharp.Server.WebSocketBehavior
 WebSocketBehavior ()
 Initializes a new instance of the WebSocketBehavior class.
 
void Close ()
 Closes the WebSocket connection for a session.
 
void Close (ushort code, string reason)
 Closes the WebSocket connection for a session with the specified code and reason.
 
void Close (CloseStatusCode code, string reason)
 Closes the WebSocket connection for a session with the specified code and reason.
 
void CloseAsync ()
 Closes the WebSocket connection for a session asynchronously.
 
void CloseAsync (ushort code, string reason)
 Closes the WebSocket connection for a session asynchronously with the specified code and reason.
 
void CloseAsync (CloseStatusCode code, string reason)
 Closes the WebSocket connection for a session asynchronously with the specified code and reason.
 
virtual void OnClose (CloseEventArgs e)
 Called when the WebSocket connection for a session has been closed.
 
virtual void OnError (ErrorEventArgs e)
 Called when the WebSocket interface for a session gets an error.
 
virtual void OnMessage (MessageEventArgs e)
 Called when the WebSocket interface for a session receives a message.
 
virtual void OnOpen ()
 Called when the WebSocket connection for a session has been established.
 
bool Ping ()
 Sends a ping to the client for a session.
 
bool Ping (string message)
 Sends a ping with the specified message to the client for a session.
 
void Send (byte[] data)
 Sends the specified data to the client for a session.
 
void Send (FileInfo fileInfo)
 Sends the specified file to the client for a session.
 
void Send (string data)
 Sends the specified data to the client for a session.
 
void Send (Stream stream, int length)
 Sends the data from the specified stream instance to the client for a session.
 
void SendAsync (byte[] data, Action< bool > completed)
 Sends the specified data to the client for a session asynchronously.
 
void SendAsync (FileInfo fileInfo, Action< bool > completed)
 Sends the specified file to the client for a session asynchronously.
 
void SendAsync (string data, Action< bool > completed)
 Sends the specified data to the client for a session asynchronously.
 
void SendAsync (Stream stream, int length, Action< bool > completed)
 Sends the data from the specified stream instance to the client for a session asynchronously.
 

Properties

IPEndPoint IpEndPoint [get]
 
- Properties inherited from WebSocketSharp.Server.WebSocketBehavior
NameValueCollection Headers [get]
 Gets the HTTP headers for a session.
 
bool IsAlive [get]
 Gets a value indicating whether the communication is possible for a session.
 
NameValueCollection QueryString [get]
 Gets the query string for a session.
 
WebSocketState ReadyState [get]
 Gets the current state of the WebSocket interface for a session.
 
WebSocketSessionManager Sessions [get]
 Gets the management function for the sessions in the service.
 
IPrincipal User [get]
 Gets the client information for a session.
 
System.Net.IPEndPoint UserEndPoint [get]
 Gets the client endpoint for a session.
 
Func< CookieCollection, CookieCollection, bool > CookiesValidator [get, set]
 Gets or sets the delegate used to validate the HTTP cookies.
 
bool EmitOnPing [get, set]
 Gets or sets a value indicating whether the message event is emitted when the WebSocket interface for a session receives a ping.
 
string ID [get]
 Gets the unique ID of a session.
 
bool IgnoreExtensions [get, set]
 Gets or sets a value indicating whether the WebSocket interface for a session ignores the Sec-WebSocket-Extensions header.
 
Func< string, bool > OriginValidator [get, set]
 Gets or sets the delegate used to validate the Origin header.
 
string Protocol [get, set]
 Gets or sets the name of the WebSocket subprotocol for a session.
 
DateTime StartTime [get]
 Gets the time that a session has started.
 
- Properties inherited from WebSocketSharp.Server.IWebSocketSession
string ID [get]
 Gets the unique ID of the session.
 
DateTime StartTime [get]
 Gets the time that the session has started.
 
WebSocket WebSocket [get]
 Gets the WebSocket interface for the session.
 
- Properties inherited from WebSocketListener.IWebSocketConnection
IPEndPoint IpEndPoint [get]
 

Events

Action< IWebSocketConnectionConnectionOpen
 
Action ConnectionClosed
 
Action< byte[]> BinaryMessageReceived
 
Action< Exception > ConnectionError
 
- Events inherited from WebSocketListener.IWebSocketConnection
Action< IWebSocketConnectionConnectionOpen
 
Action ConnectionClosed
 
Action< byte[]> BinaryMessageReceived
 
Action< Exception > ConnectionError
 

Member Function Documentation

◆ Close()

new void RconListener.Close ( )
inline

◆ OnClose()

override void RconListener.OnClose ( CloseEventArgs  e)
inlineprotectedvirtual

Called when the WebSocket connection for a session has been closed.

Parameters
eA CloseEventArgs that represents the event data passed from a WebSocket.OnClose event.

Reimplemented from WebSocketSharp.Server.WebSocketBehavior.

◆ OnError()

override void RconListener.OnError ( ErrorEventArgs  e)
inlineprotectedvirtual

Called when the WebSocket interface for a session gets an error.

Parameters
eA ErrorEventArgs that represents the event data passed from a WebSocket.OnError event.

Reimplemented from WebSocketSharp.Server.WebSocketBehavior.

◆ OnMessage()

override void RconListener.OnMessage ( MessageEventArgs  e)
inlineprotectedvirtual

Called when the WebSocket interface for a session receives a message.

Parameters
eA MessageEventArgs that represents the event data passed from a WebSocket.OnMessage event.

Reimplemented from WebSocketSharp.Server.WebSocketBehavior.

◆ OnOpen()

override void RconListener.OnOpen ( )
inlineprotectedvirtual

Called when the WebSocket connection for a session has been established.

Reimplemented from WebSocketSharp.Server.WebSocketBehavior.

◆ Send()

new void RconListener.Send ( byte[]  buffer)
inline

Property Documentation

◆ IpEndPoint

IPEndPoint RconListener.IpEndPoint
get

The documentation for this class was generated from the following file: