/// <summary> /// Create a new <see cref="TcpServer"/> with the given <paramref name="settings"/> /// and <paramref name="serverInfo"/>. /// </summary> /// <param name="settings">The settings to instantiate with.</param> /// <param name="serverInfo">The <see cref="ServerInfoMessage"/> sent to new clients.</param> public TcpServer(ServerSettings settings, ServerInfoMessage serverInfo) { Settings = settings; ServerInfo = serverInfo; ConnectionMonitor = new ConnectionMonitor(this); }
/// <summary> /// Create a new <see cref="TcpServer"/> with the given <paramref name="settings"/>. /// </summary> /// <param name="settings">The settings to instantiate with.</param> public TcpServer(ServerSettings settings) : this(settings, ServerInfoMessage.Default) { }