public static (IConnection, IConnection) CreatePipe() { var c1 = new PipeConnection(); var c2 = new PipeConnection(); c1.connected = c2; c2.connected = c1; return(c1, c2); }
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(); }
public void Setup() { (c1, c2) = PipeConnection.CreatePipe(); }