// Token: 0x0600097F RID: 2431 RVA: 0x00045AF0 File Offset: 0x00043CF0 public ZSteamSocket(CSteamID peerID) { ZSteamSocket.RegisterGlobalCallbacks(); this.m_peerID.SetSteamID(peerID); this.m_con = SteamNetworkingSockets.ConnectP2P(ref this.m_peerID, 0, 0, null); ZLog.Log("Connecting to " + this.m_peerID.GetSteamID().ToString()); ZSteamSocket.m_sockets.Add(this); }
// Token: 0x0600097E RID: 2430 RVA: 0x00045A6C File Offset: 0x00043C6C public ZSteamSocket(SteamNetworkingIPAddr host) { ZSteamSocket.RegisterGlobalCallbacks(); string str; host.ToString(out str, true); ZLog.Log("Starting to connect to " + str); this.m_con = SteamNetworkingSockets.ConnectByIPAddress(ref host, 0, null); ZSteamSocket.m_sockets.Add(this); }
// Token: 0x06000980 RID: 2432 RVA: 0x00045B94 File Offset: 0x00043D94 public ZSteamSocket(HSteamNetConnection con) { ZSteamSocket.RegisterGlobalCallbacks(); this.m_con = con; SteamNetConnectionInfo_t steamNetConnectionInfo_t; SteamNetworkingSockets.GetConnectionInfo(this.m_con, out steamNetConnectionInfo_t); this.m_peerID = steamNetConnectionInfo_t.m_identityRemote; ZLog.Log("Connecting to " + this.m_peerID.ToString()); ZSteamSocket.m_sockets.Add(this); }
// Token: 0x0600097D RID: 2429 RVA: 0x00045A10 File Offset: 0x00043C10 public ZSteamSocket() { ZSteamSocket.RegisterGlobalCallbacks(); ZSteamSocket.m_sockets.Add(this); }