Creates a new instance of the Connection class.
Declaring type: Connection
Namespace: Zyan.Communication.Protocols.Tcp.DuplexChannel
Assembly: Zyan.Communication
Collapse/Expand Syntax
C#
protected Connection (
        Socket socket,
        TcpExChannel channel,
        bool keepAlive,
        ulong keepAliveTime,
        ulong KeepAliveInterval,
        short maxRetries,
        int retryDelay
) 
Parameters
socket
Socket which sould be used
channel
Remoting channel
keepAlive
Enables or disables TCP KeepAlive for the new connection
keepAliveTime
Time for TCP KeepAlive in Milliseconds
KeepAliveInterval
Interval for TCP KeepAlive in Milliseconds
maxRetries
Maximum number of connection retry attempts
retryDelay
Delay after connection retry in milliseconds