public SocketConnection(SocketInterface socketInterface, SocketConnectionInfo connectionInfo) { networkRtt = defaultNetworkPing; aliasedRtt = defaultAliasedPing; creationTime = Time.time; this.connectionInfo = connectionInfo; this.socketInterface = socketInterface; SetMode(); endPoint = new IPEndPoint(IPAddress.Parse(connectionInfo.Address), connectionInfo.Port); }
public SocketConnection(SocketInterface socketInterface, IPEndPoint endPoint) { networkRtt = defaultNetworkPing; aliasedRtt = defaultAliasedPing; creationTime = Time.time; this.endPoint = endPoint; this.socketInterface = socketInterface; SetMode(); //connectionInfo = new SocketConnectionInfo(endPoint.Address.ToString(), endPoint.Port); }