mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
25 lines
512 B
C#
25 lines
512 B
C#
using System;
|
|
|
|
namespace Lidgren.Network
|
|
{
|
|
/// <summary>
|
|
/// Specialized version of NetPeer used for "server" peers
|
|
/// </summary>
|
|
public class NetServer : NetPeer
|
|
{
|
|
public NetServer(NetPeerConfiguration config)
|
|
: base(config)
|
|
{
|
|
config.AcceptIncomingConnections = true;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns a string that represents this object
|
|
/// </summary>
|
|
public override string ToString()
|
|
{
|
|
return "[NetServer " + ConnectionsCount + " connections]";
|
|
}
|
|
}
|
|
}
|