Creates a new instance of the TcpDuplexServerProtocolSetup class.
Declaring type: TcpDuplexServerProtocolSetup
Namespace: Zyan.Communication.Protocols.Tcp
Assembly: Zyan.Communication
Collapse/Expand Syntax
C#
public TcpDuplexServerProtocolSetup (
        int tcpPort,
        IAuthenticationProvider authProvider,
        bool encryption,
        bool keepAlive,
        ulong keepAliveTime,
        ulong KeepAliveInterval
) 
Parameters
tcpPort
TCP port number
authProvider
Authentication provider
encryption
Specifies if the communication sould be encrypted
keepAlive
Enables or disables TCP KeepAlive for the new connection
keepAliveTime
Time for TCP KeepAlive in Milliseconds
KeepAliveInterval
Interval for TCP KeepAlive in Milliseconds