예제 #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);
        }
예제 #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);
        }