Ejemplo n.º 1
0
        public static (IConnection, IConnection) CreatePipe()
        {
            var c1 = new PipeConnection();
            var c2 = new PipeConnection();

            c1.connected = c2;
            c2.connected = c1;

            return(c1, c2);
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
0
 public void Setup()
 {
     (c1, c2) = PipeConnection.CreatePipe();
 }