Class ConnectionAcceptingEventArgs
Occurs before a connection is accepted. Set the Cancel property to true to prevent the connection from being accepted.
Inherited Members
Namespace: Swan.Net
Syntax
public class ConnectionAcceptingEventArgs : ConnectionAcceptedEventArgs
Constructors
ConnectionAcceptingEventArgs(TcpClient)
Initializes a new instance of the ConnectionAcceptingEventArgs class.
Declaration
public ConnectionAcceptingEventArgs(TcpClient client)
Parameters
Type | Name | Description |
---|---|---|
TcpClient | client | The client. |
Properties
Cancel
Setting Cancel to true rejects the new TcpClient.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|