using System; namespace Lidgren.Network { /// /// Specialized version of NetPeer used for "server" peers /// public class NetServer : NetPeer { public NetServer(NetPeerConfiguration config) : base(config) { config.AcceptIncomingConnections = true; } /// /// Returns a string that represents this object /// public override string ToString() { return "[NetServer " + ConnectionsCount + " connections]"; } } }