|
@@ -481,6 +481,10 @@ namespace ENet {
|
|
|
Create(null, peerLimit, channelLimit, incomingBandwidth, outgoingBandwidth, 0);
|
|
Create(null, peerLimit, channelLimit, incomingBandwidth, outgoingBandwidth, 0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public void Create(Address? address, int peerLimit, int channelLimit, uint incomingBandwidth, uint outgoingBandwidth) {
|
|
|
|
|
+ Create(address, peerLimit, channelLimit, incomingBandwidth, outgoingBandwidth, 0);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public void Create(Address? address, int peerLimit, int channelLimit, uint incomingBandwidth, uint outgoingBandwidth, int bufferSize) {
|
|
public void Create(Address? address, int peerLimit, int channelLimit, uint incomingBandwidth, uint outgoingBandwidth, int bufferSize) {
|
|
|
if (nativeHost != IntPtr.Zero)
|
|
if (nativeHost != IntPtr.Zero)
|
|
|
throw new InvalidOperationException("Host already created");
|
|
throw new InvalidOperationException("Host already created");
|
|
@@ -1083,4 +1087,4 @@ namespace ENet {
|
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
|
internal static extern void enet_peer_reset(IntPtr peer);
|
|
internal static extern void enet_peer_reset(IntPtr peer);
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|