Class ClientConnectingEventArgs
Represents the arguments for the client connection request event.
Namespace: Evergine.Networking.Connection
Assembly: Evergine.Networking.dll
Syntax
public class ClientConnectingEventArgs : EventArgs
Constructors
ClientConnectingEventArgs(NetworkEndpoint, IncomingMessage)
Initializes a new instance of the ClientConnectingEventArgs class.
Declaration
public ClientConnectingEventArgs(NetworkEndpoint clientEndpoint, IncomingMessage hailMessage)
Parameters
Type | Name | Description |
---|---|---|
NetworkEndpoint | clientEndpoint | The client endpoint. |
IncomingMessage | hailMessage | The received hail message. |
Properties
ClientEndpoint
Gets the endpoint for the new client.
Declaration
public NetworkEndpoint ClientEndpoint { get; }
Property Value
Type | Description |
---|---|
NetworkEndpoint |
HailMessage
Gets the received hail message from the client.
Declaration
public IncomingMessage HailMessage { get; }
Property Value
Type | Description |
---|---|
IncomingMessage |
IsRejected
Gets a value indicating whether the connection request has been rejected.
Declaration
public bool IsRejected { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Reject()
Marks the connection request as rejected.
Declaration
public void Reject()