|
@@ -607,7 +607,6 @@ namespace ENet {
|
|
|
public struct Peer {
|
|
public struct Peer {
|
|
|
private IntPtr nativePeer;
|
|
private IntPtr nativePeer;
|
|
|
private uint nativeID;
|
|
private uint nativeID;
|
|
|
- private ushort nativePeerID;
|
|
|
|
|
|
|
|
|
|
internal IntPtr NativeData {
|
|
internal IntPtr NativeData {
|
|
|
get {
|
|
get {
|
|
@@ -622,7 +621,6 @@ namespace ENet {
|
|
|
public Peer(IntPtr peer) {
|
|
public Peer(IntPtr peer) {
|
|
|
nativePeer = peer;
|
|
nativePeer = peer;
|
|
|
nativeID = nativePeer != IntPtr.Zero ? Native.enet_peer_get_id(nativePeer) : 0;
|
|
nativeID = nativePeer != IntPtr.Zero ? Native.enet_peer_get_id(nativePeer) : 0;
|
|
|
- nativePeerID = nativePeer != IntPtr.Zero ? Native.enet_peer_get_peer_id(nativePeer) : 0;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public bool IsSet {
|
|
public bool IsSet {
|
|
@@ -636,12 +634,6 @@ namespace ENet {
|
|
|
return nativeID;
|
|
return nativeID;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- public ushort PeerID {
|
|
|
|
|
- get {
|
|
|
|
|
- return nativePeerID;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
public string IP {
|
|
public string IP {
|
|
|
get {
|
|
get {
|
|
@@ -971,9 +963,6 @@ namespace ENet {
|
|
|
|
|
|
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
|
internal static extern uint enet_peer_get_id(IntPtr peer);
|
|
internal static extern uint enet_peer_get_id(IntPtr peer);
|
|
|
-
|
|
|
|
|
- [DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
- internal static extern ushort enet_peer_get_peer_id(IntPtr peer);
|
|
|
|
|
|
|
|
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
|
internal static extern int enet_peer_get_ip(IntPtr peer, byte[] ip, IntPtr ipLength);
|
|
internal static extern int enet_peer_get_ip(IntPtr peer, byte[] ip, IntPtr ipLength);
|
|
@@ -1038,4 +1027,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);
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|