Skip to content

Commit

Permalink
Add parameterless host creation method for client
Browse files Browse the repository at this point in the history
  • Loading branch information
nxrighthere authored Aug 18, 2018
1 parent e33efce commit 82b6ffb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Managed/ENet.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Managed C# wrapper for an extended version of ENet
* Copyright (c) 2013 James Bellinger
* Copyright (c) 2016 Nate Shoffner
Expand Down Expand Up @@ -352,6 +352,10 @@ private void CheckChannelLimit(int channelLimit) {
throw new ArgumentOutOfRangeException("channelLimit");
}

public void Create() {
Create(null, 1, 0);
}

public void Create(Address? address, int peerLimit) {
Create(address, peerLimit, 0);
}
Expand Down

0 comments on commit 82b6ffb

Please sign in to comment.