Example #1
0
        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);
        }
Example #2
0
        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);
        }