Gets a specified connection.
Declaring type: Connection
Namespace: Zyan.Communication.Protocols.Tcp.DuplexChannel
Assembly: Zyan.Communication
Collapse/Expand Syntax
C#
public static Connection GetConnection (
        string address,
        TcpExChannel channel,
        bool keepAlive,
        ulong keepAliveTime,
        ulong KeepAliveInterval,
        short maxRetries,
        int retryDelay
) 
Parameters
address
Address of the connection
channel
Channel of the connection
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
Return Value
Connection