/// <summary> /// Create a new server instance bound to the first found IP address for the local host /// </summary> /// <param name="Port">Port to use for server, default: 23 (Telnet)</param> /// <param name="Protocol">Protocol to use for the server, default: Telnet (RFC854)</param> public LineBasedTCPServer(UInt16 Port = (UInt16)DefaultPorts.Telnet, RFCProtocol Protocol = RFCProtocol.Telnet) : base(IPAddressExtensions.LocalIPAddress(), Port, Protocol) { }
/// <summary> /// Create a new TCP server instance bound to the first found IP address for the local host /// </summary> /// <param name="BufferType">Instance to indicate the buffer type</param> /// <param name="Port">Port to use for server, default: 23 (Telnet)</param> /// <param name="Protocol">Protocol to use for the server, default: TCP (RFC793)</param> public BufferedInternetServer(T BufferType, UInt16 Port = (UInt16)DefaultPorts.Telnet, RFCProtocol Protocol = RFCProtocol.TCP) : base() { PacketType = BufferType; InitBuffer(); CreateServer(IPAddressExtensions.LocalIPAddress(), Port, Protocol); }