Example #1
0
 public void SetLocalIPBinding(ref SteamIPAddress unIP, ushort usPort)
 {
     _SetLocalIPBinding(Self, ref unIP, usPort);
 }
        internal bool GetListenSocketInfo(SNetListenSocket_t hListenSocket, ref SteamIPAddress pnIP, ref ushort pnPort)
        {
            var returnValue = _GetListenSocketInfo(Self, hListenSocket, ref pnIP, ref pnPort);

            return(returnValue);
        }
Example #3
0
 public static extern void _SetLocalIPBinding(IntPtr self, ref SteamIPAddress unIP, ushort usPort);
        internal bool GetSocketInfo(SNetSocket_t hSocket, ref SteamId pSteamIDRemote, ref int peSocketStatus, ref SteamIPAddress punIPRemote, ref ushort punPortRemote)
        {
            var returnValue = _GetSocketInfo(Self, hSocket, ref pSteamIDRemote, ref peSocketStatus, ref punIPRemote, ref punPortRemote);

            return(returnValue);
        }
 private static extern bool _GetListenSocketInfo(IntPtr self, SNetListenSocket_t hListenSocket, ref SteamIPAddress pnIP, ref ushort pnPort);
 private static extern bool _GetSocketInfo(IntPtr self, SNetSocket_t hSocket, ref SteamId pSteamIDRemote, ref int peSocketStatus, ref SteamIPAddress punIPRemote, ref ushort punPortRemote);
        internal SNetSocket_t CreateConnectionSocket(SteamIPAddress nIP, ushort nPort, int nTimeoutSec)
        {
            var returnValue = _CreateConnectionSocket(Self, nIP, nPort, nTimeoutSec);

            return(returnValue);
        }
 private static extern SNetSocket_t _CreateConnectionSocket(IntPtr self, SteamIPAddress nIP, ushort nPort, int nTimeoutSec);
        internal SNetListenSocket_t CreateListenSocket(int nVirtualP2PPort, SteamIPAddress nIP, ushort nPort, [MarshalAs(UnmanagedType.U1)] bool bAllowUseOfPacketRelay)
        {
            var returnValue = _CreateListenSocket(Self, nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay);

            return(returnValue);
        }
 private static extern SNetListenSocket_t _CreateListenSocket(IntPtr self, int nVirtualP2PPort, SteamIPAddress nIP, ushort nPort, [MarshalAs(UnmanagedType.U1)] bool bAllowUseOfPacketRelay);