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