Example #1
0
        public static bool Initialize(ref NetworkingIdentity identity, StringBuilder errorMessage)
        {
            if (errorMessage != null && errorMessage.Capacity != maxErrorMessageLength)
            {
                throw new ArgumentOutOfRangeException("Capacity of the error message must be equal to " + maxErrorMessageLength);
            }

            if (Object.Equals(identity, null))
            {
                throw new ArgumentNullException("identity");
            }

            return(Native.GameNetworkingSockets_Init(ref identity, errorMessage));
        }
Example #2
0
 internal static extern bool SteamAPI_SteamNetworkingIdentity_EqualTo(ref NetworkingIdentity identityOne, ref NetworkingIdentity identityTwo);
Example #3
0
 internal static extern ulong SteamAPI_SteamNetworkingIdentity_GetSteamID64(ref NetworkingIdentity identity);
Example #4
0
 internal static extern void SteamAPI_SteamNetworkingIdentity_SetSteamID64(ref NetworkingIdentity identity, ulong steamID);
Example #5
0
 internal static extern bool SteamAPI_SteamNetworkingIdentity_IsInvalid(ref NetworkingIdentity identity);
Example #6
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair(IntPtr sockets, Connection connectionOne, Connection connectionTwo, bool useNetworkLoopback, NetworkingIdentity identityOne, NetworkingIdentity identityTwo);
Example #7
0
 public bool CreateSocketPair(Connection connectionOne, Connection connectionTwo, bool useNetworkLoopback, NetworkingIdentity identityOne, NetworkingIdentity identityTwo)
 {
     return(Native.SteamAPI_ISteamNetworkingSockets_CreateSocketPair(nativeSockets, connectionOne, connectionTwo, useNetworkLoopback, identityOne, identityTwo));
 }
Example #8
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_GetIdentity(IntPtr sockets, ref NetworkingIdentity identity);
Example #9
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair(IntPtr sockets, Connection connectionLeft, Connection connectionRight, bool useNetworkLoopback, ref NetworkingIdentity identityLeft, ref NetworkingIdentity identityRight);
Example #10
0
 internal static extern bool GameNetworkingSockets_Init(ref NetworkingIdentity identity, StringBuilder errorMessage);
Example #11
0
 public bool GetIdentity(ref NetworkingIdentity identity)
 {
     return(Native.SteamAPI_ISteamNetworkingSockets_GetIdentity(nativeSockets, ref identity));
 }
Example #12
0
 public bool CreateSocketPair(Connection connectionLeft, Connection connectionRight, bool useNetworkLoopback, ref NetworkingIdentity identityLeft, ref NetworkingIdentity identityRight)
 {
     return(Native.SteamAPI_ISteamNetworkingSockets_CreateSocketPair(nativeSockets, connectionLeft, connectionRight, useNetworkLoopback, ref identityLeft, ref identityRight));
 }