Creates a connection object.
Declaring type: Connection
Namespace: Zyan.Communication.Protocols.Tcp.DuplexChannel
Assembly: Zyan.Communication
Collapse/Expand Syntax
C#
public static Connection CreateConnection (
        Socket socket,
        TcpExChannel channel,
        bool keepAlive,
        ulong keepAliveTime,
        ulong KeepAliveInterval,
        short maxRetries,
        int retryDelay
) 
Parameters
socket
Connection socket
channel
Connection 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
Return Value
Connection