|
|
@@ -7,8 +7,7 @@ namespace ENet
|
|
|
{
|
|
|
public ServerHost(string hostName, ushort port,
|
|
|
uint peerLimit = NativeMethods.ENET_PROTOCOL_MAXIMUM_PEER_ID,
|
|
|
- uint channelLimit = 0, uint incomingBandwidth = 0, uint outgoingBandwidth = 0,
|
|
|
- bool enableCrc = true, bool compressWithRangeEncoder = true)
|
|
|
+ uint channelLimit = 0, uint incomingBandwidth = 0, uint outgoingBandwidth = 0)
|
|
|
{
|
|
|
if (peerLimit > NativeMethods.ENET_PROTOCOL_MAXIMUM_PEER_ID)
|
|
|
{
|
|
|
@@ -26,16 +25,6 @@ namespace ENet
|
|
|
{
|
|
|
throw new ENetException("Host creation call failed.");
|
|
|
}
|
|
|
-
|
|
|
- if (enableCrc)
|
|
|
- {
|
|
|
- this.EnableCrc();
|
|
|
- }
|
|
|
-
|
|
|
- if (compressWithRangeEncoder)
|
|
|
- {
|
|
|
- this.CompressWithRangeCoder();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
public Task<Peer> AcceptAsync()
|