상속: UdpConnectionlessListener, IConnectionProvider
예제 #1
0
        internal UdpServerConnection(int connectionId, EndPoint remoteEndpoint, UdpConnectionProvider provider)
            : base(provider.protocols.Values)
        {
            ConnectionId = connectionId;
            IPEndPoint = (IPEndPoint)remoteEndpoint;
            RemoteTarget = remoteEndpoint.ToTarget();
            this.provider = provider;

            this.socket = this.provider.GetSocket (remoteEndpoint);
        }
예제 #2
0
		internal UdpServerConnection (int connectionId, EndPoint remoteEndpoint, UdpConnectionProvider provider)
			: base (provider.protocols.Values)
		{
			ConnectionId = connectionId;
			IPEndPoint = (IPEndPoint)remoteEndpoint;
			RemoteTarget = remoteEndpoint.ToTarget();
			this.provider = provider;

			this.socket = this.provider.GetSocket (remoteEndpoint);
		}
예제 #3
0
        internal UdpServerConnection(int connectionId, EndPoint remoteEndpoint, UdpConnectionProvider provider, RSACrypto remoteCrypto, RSACrypto localCrypto, RSAAsymmetricKey key)
            : base(provider.protocols.Values)
        {
            this.remoteCrypto = remoteCrypto;
            this.localCrypto = localCrypto;
            LocalKey = key;

            ConnectionId = connectionId;
            IPEndPoint = (IPEndPoint)remoteEndpoint;
            RemoteTarget = remoteEndpoint.ToTarget();
            this.provider = provider;

            this.socket = this.provider.GetSocket (remoteEndpoint);
        }
예제 #4
0
		internal UdpServerConnection (int connectionId, EndPoint remoteEndpoint, UdpConnectionProvider provider, RSACrypto remoteCrypto, RSACrypto localCrypto, RSAAsymmetricKey key)
			: base (provider.protocols.Values)
		{
			this.remoteCrypto = remoteCrypto;
			this.localCrypto = localCrypto;
			LocalKey = key;

			ConnectionId = connectionId;
			IPEndPoint = (IPEndPoint)remoteEndpoint;
			RemoteTarget = remoteEndpoint.ToTarget();
			this.provider = provider;

			this.socket = this.provider.GetSocket (remoteEndpoint);
		}