コード例 #1
0
        /// <summary>
        ///     Creates a UdpConnection for the virtual connection to the endpoint.
        /// </summary>
        /// <param name="listener">The listener that created this connection.</param>
        /// <param name="endPoint">The endpoint that we are connected to.</param>
        internal UdpServerConnection(UdpConnectionListener listener, EndPoint endPoint)
            : base()
        {
            this.Listener       = listener;
            this.RemoteEndPoint = endPoint;
            this.EndPoint       = new NetworkEndPoint(endPoint);

            State = ConnectionState.Connected;
        }
コード例 #2
0
        /// <summary>
        ///     Creates a UdpConnection for the virtual connection to the endpoint.
        /// </summary>
        /// <param name="listener">The listener that created this connection.</param>
        /// <param name="endPoint">The endpoint that we are connected to.</param>
        /// <param name="IPMode">The IPMode we are connected using.</param>
        internal UdpServerConnection(UdpConnectionListener listener, IPEndPoint endPoint, IPMode IPMode)
            : base()
        {
            this.Listener       = listener;
            this.RemoteEndPoint = endPoint;
            this.EndPoint       = endPoint;
            this.IPMode         = IPMode;

            State = ConnectionState.Connected;
        }
コード例 #3
0
        /// <summary>
        ///     Creates a UdpConnection for the virtual connection to the endpoint.
        /// </summary>
        /// <param name="listener">The listener that created this connection.</param>
        /// <param name="endPoint">The endpoint that we are connected to.</param>
        /// <param name="IPMode">The IPMode we are connected using.</param>
        internal UdpServerConnection(UdpConnectionListener listener, IPEndPoint endPoint, IPMode IPMode)
            : base()
        {
            this.Listener = listener;
            this.EndPoint = endPoint;
            this.IPMode   = IPMode;

            State = ConnectionState.Connected;
            this.InitializeKeepAliveTimer();
        }
コード例 #4
0
ファイル: UdpServerConnection.cs プロジェクト: seba9087/sm64o
        /// <summary>
        ///     Creates a UdpConnection for the virtual connection to the endpoint.
        /// </summary>
        /// <param name="listener">The listener that created this connection.</param>
        /// <param name="endPoint">The endpoint that we are connected to.</param>
        /// <param name="IPMode">The IPMode we are connected using.</param>
        public UdpServerConnection(UdpConnectionListener listener, EndPoint endPoint, IPMode IPMode)
            : base()
        {
            this.Listener       = listener;
            this.RemoteEndPoint = endPoint;
            this.EndPoint       = new NetworkEndPoint(endPoint);
            this.IPMode         = IPMode;

            State = ConnectionState.Connected;
        }
コード例 #5
0
        /// <summary>
        ///     Creates a UdpConnection for the virtual connection to the endpoint.
        /// </summary>
        /// <param name="listener">The listener that created this connection.</param>
        /// <param name="endPoint">The endpoint that we are connected to.</param>
        /// <param name="IPMode">The IPMode we are connected using.</param>
        internal UdpServerConnection(UdpConnectionListener listener, EndPoint endPoint, IPMode IPMode)
            : base()
        {
            this.Listener       = listener;
            this.RemoteEndPoint = endPoint;
            this.EndPoint       = new NetworkEndPoint(endPoint);
            this.IPMode         = IPMode;

            State = ConnectionState.Connected;

            InitializeKeepAliveTimer();
        }