LogentriesCore.Net.LeClient.LeClient C# (CSharp) Method

LeClient() public method

public LeClient ( bool useHttpPut, bool useSsl, bool useDataHub, String serverAddr, int port ) : System
useHttpPut bool
useSsl bool
useDataHub bool
serverAddr String
port int
return System
        public LeClient(bool useHttpPut, bool useSsl, bool useDataHub, String serverAddr, int port)
        {
            
            // Override port number and server address to send logs to DataHub instance.
            if (useDataHub)
            {
                m_UseSsl = false; // DataHub does not support receiving log messages over SSL for now.
                m_TcpPort = port;
                m_ServerAddr = serverAddr;
            }
            else
            {
                m_UseSsl = useSsl;

                if (!m_UseSsl)
                    m_TcpPort = useHttpPut ? LeApiHttpPort : LeApiTokenPort;
                else
                    m_TcpPort = useHttpPut ? LeApiHttpsPort : LeApiTokenTlsPort;
            }            
        }