/// <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; }
/// <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; }
/// <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(); }
/// <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; }
/// <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(); }