private static void ConnectionStatusChanged(SteamNetConnectionStatusChangedCallback_t data) { if (data.Nfo.listenSocket.Id == 0) { ConnectionInterface connectionInterface = SteamNetworkingSockets.GetConnectionInterface(data.Conn.Id); if (connectionInterface != null) { connectionInterface.OnConnectionChanged(data.Nfo); } } else { SocketInterface socketInterface = SteamNetworkingSockets.GetSocketInterface(data.Nfo.listenSocket.Id); if (socketInterface != null) { socketInterface.OnConnectionChanged(data.Conn, data.Nfo); } } Action <Connection, ConnectionInfo> action = SteamNetworkingSockets.OnConnectionStatusChanged; if (action != null) { action(data.Conn, data.Nfo); } else { } }
internal static void SetConnectionInterface(uint id, ConnectionInterface iface) { if (id == 0) { throw new ArgumentException("Invalid Connection"); } SteamNetworkingSockets.ConnectionInterfaces[id] = iface; }
internal static void SetConnectionInterface(uint id, ConnectionInterface iface) { if (id == 0) { throw new System.ArgumentException("Invalid Connection"); } ConnectionInterfaces[id] = iface; }