Exemplo n.º 1
0
        internal void ConnectHost(NetworkServer server)
        {
            logger.Log("Client Connect Host to Server");
            connectState = ConnectState.Connected;

            InitializeAuthEvents();

            // create local connection objects and connect them
            (IConnection c1, IConnection c2) = PipeConnection.CreatePipe();

            server.SetLocalConnection(this, c2);
            IsLocalClient = true;
            Connection    = GetNewConnection(c1);
            RegisterHostHandlers();

            OnConnected().Forget();
        }
Exemplo n.º 2
0
 public void Setup()
 {
     (c1, c2) = PipeConnection.CreatePipe();
 }