internal RpcUdpConnectionEncrypted(UdpPeer parent, ICipher cipher, IRpcPeer rpcPeer, RpcConfiguration configuration) : base(parent, rpcPeer, configuration)
 {
     if (cipher == null)
     {
         throw new ArgumentNullException(nameof(cipher));
     }
     this.cipher = cipher;
     this.dh     = new DiffieHellmanImpl(cipher);
 }
Ejemplo n.º 2
0
 internal RpcUdpConnection(UdpPeer parent, IRpcPeer rpcPeer, RpcConfiguration configuration) : base(parent)
 {
     if (parent == null)
     {
         throw new ArgumentNullException(nameof(parent));
     }
     if (rpcPeer == null)
     {
         throw new ArgumentNullException(nameof(rpcPeer));
     }
     if (configuration == null)
     {
         throw new ArgumentNullException(nameof(configuration));
     }
     this.configuration = configuration;
     this.rpcPeer       = rpcPeer;
 }
 internal RpcTcpConnectionEncrypted(TcpPeer parent, IRpcPeer rpcPeer, RpcConfiguration configuration) : base(
         parent, rpcPeer, configuration)
 {
 }
Ejemplo n.º 4
0
 //---------------------------------------------------------------------
 public RpcSession(EntityMgr entity_mgr, IRpcPeer rpc_peer)
 {
     mEntityMgr = entity_mgr;
     mRpcPeer   = rpc_peer;
 }