Class ConnectionParameters
Represents extended connection parameters for establishing network connections.
public class ConnectionParameters
- Inheritance
-
ConnectionParameters
- Inherited Members
Constructors
ConnectionParameters()
Initializes a new instance of the ConnectionParameters class.
public ConnectionParameters()
Properties
CertificateServerName
Gets or sets the server name that should match the TLS certificate.
public string CertificateServerName { get; set; }
Property Value
CertificateThumbprint
Gets or sets the thumbprint of the certificate to use for server TLS connections.
public string CertificateThumbprint { get; set; }
Property Value
ConnectEventHandler
Gets or sets the event handler for connection established events.
public EventHandler<TransportArgs> ConnectEventHandler { get; set; }
Property Value
DisableMulticastLoop
Gets or sets a value indicating whether to disable multicast loopback.
public bool DisableMulticastLoop { get; set; }
Property Value
DisconnectEventHandler
Gets or sets the event handler for disconnection events.
public EventHandler<TransportArgs> DisconnectEventHandler { get; set; }
Property Value
ExtraData
Gets or sets extra data that may be required by certain transport implementations.
public object ExtraData { get; set; }
Property Value
IsListener
Gets or sets a value indicating whether this connection is a listener.
public bool IsListener { get; set; }
Property Value
LocalBindingEndPoint
Gets or sets the local binding endpoint.
public IPEndPoint LocalBindingEndPoint { get; set; }
Property Value
Remarks
Must be specified when there are multiple local network interfaces and a multicast remote endpoint.
MaxConsecutiveUdpReceiveErrors
Gets or sets the maximum consecutive receive errors a UDP socket can tolerate before raising an error.
public int? MaxConsecutiveUdpReceiveErrors { get; set; }
Property Value
- int?
MaxSendQueueSize
Gets or sets the maximum send queue size.
public int MaxSendQueueSize { get; set; }
Property Value
Remarks
A value of -1 indicates no limit.
Protocol
Gets or sets the connection protocol.
public ProtocolType Protocol { get; set; }
Property Value
ReceiveEventHandler
Gets or sets the event handler for data receive events.
public EventHandler<TransportArgs> ReceiveEventHandler { get; set; }
Property Value
RecvSocketBufferSize
Gets or sets the receive socket buffer size in bytes.
public int RecvSocketBufferSize { get; set; }
Property Value
RemoteEndPoint
Gets or sets the remote endpoint to connect to.
public IPEndPoint RemoteEndPoint { get; set; }
Property Value
ReuseLocalAddr
Gets or sets a value indicating whether to reuse the local endpoint address.
public bool ReuseLocalAddr { get; set; }
Property Value
SendOnly
Gets or sets a value indicating whether this is a send-only connection that should not start a receive loop.
public bool? SendOnly { get; set; }
Property Value
- bool?
SendSocketBufferSize
Gets or sets the send socket buffer size in bytes.
public int SendSocketBufferSize { get; set; }
Property Value
Ttl
Gets or sets the TTL (Time To Live) parameter for multicast connections.
public int? Ttl { get; set; }
Property Value
- int?
Remarks
If not specified, the default value of 1 will be used. This property is ignored for unicast connections.
UseTls
Gets or sets a value indicating whether to use TLS for the connection.
public bool UseTls { get; set; }
Property Value
UserContext
Gets or sets a user-defined context object associated with the connection.
public object UserContext { get; set; }