Esempio n. 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);
        }
Esempio n. 2
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);
        }