public void Dispose() { m_Driver.Dispose(); }
public void OnDestroy() { m_Driver.Dispose(); m_Connections.Dispose(); }
public void OnDestroy() //done { m_Driver.Dispose(); }
public void Dispose() { m_LocalDriver.Dispose(); m_LocalData.Dispose(); }
public void IPC_TearDown() { Driver.Dispose(); RemoteDriver.Dispose(); }
public void OnDestroy() { //Disconnect(); m_Driver.Dispose(); }
public void Stop() { m_isConnected = false; m_Connection.Disconnect(m_Driver); m_Driver.Dispose(); }
public void OnDestroy() { m_Driver.Dispose(); m_Connections.Dispose(); clientList.Clear(); }
public void OnDestroy() { m_Driver.Dispose(); m_NetworkPlayers.Clear(); m_Connections.Dispose(); }
public void OnDestroy() { //LogoutScript.instance.Logout(); m_Driver.Dispose(); }
void OnDestroy() { m_ClientDriver.Dispose(); }
public void IPC_TearDown() { m_ClientDriver.Dispose(); m_ServerDriver.Dispose(); }
public void Stop() { m_Driver.Dispose(); m_Connections.Dispose(); }
public void Dispose() { m_UpdateHandle.Complete(); m_ServerDriver.Dispose(); m_Connections.Dispose(); }
private void OnDestroy() { m_Driver.Dispose(); UnregisterMessageHandlerClasses(); }
void OnDestroy() { Driver.Dispose(); }
private void OnDestroy() { driver.Dispose(); connections.Dispose(); }
void OnDestroy() { m_ServerDriver.Dispose(); m_connections.Dispose(); }
public virtual void Shutdown() { driver.Dispose(); connections.Dispose(); }
private void OnDestroy() { networkJobHandle.Complete(); networkDriver.Dispose(); }
private void OnDestroy() { // Dispose of unmanaged memory Driver.Dispose(); connections.Dispose(); }
void OnDestroy() { ServerJobHandle.Complete(); m_Connections.Dispose(); m_Driver.Dispose(); }
public void Dispose() { networkJobHandle.Complete(); networkDriver.Dispose(); }
private void OnDestroy() { driver.Dispose(); }
public void OnDestroy() { Debug.Log("[Notice] Cleaning up network driver..."); m_Driver.Dispose(); }
private void OnDestroy() { networkDriver.Dispose(); connections.Dispose(); }
public void OnDestroy() { m_Driver.Dispose(); }
public IEnumerator ServerAnd5Clients_Connect_Successfully() { int numberOfClients = 5; NativeArray <NetworkConnection> connectionToClientArray; NetworkDriver[] client_driversArray = new NetworkDriver[numberOfClients]; NativeArray <NetworkConnection> clientToServerConnectionsArray; //setup server connectionToClientArray = new NativeArray <NetworkConnection>(numberOfClients, Allocator.Persistent); server_driver = NetworkDriver.Create(new NetworkDataStreamParameter { size = 0 }); NetworkEndPoint server_endpoint = NetworkEndPoint.LoopbackIpv4; server_endpoint.Port = 1337; server_driver.Bind(server_endpoint); server_driver.Listen(); //setup clients clientToServerConnectionsArray = new NativeArray <NetworkConnection>(numberOfClients, Allocator.Persistent); for (int i = 0; i < numberOfClients; i++) { client_driversArray[i] = NetworkDriver.Create(new NetworkDataStreamParameter { size = 0 }); clientToServerConnectionsArray[i] = client_driversArray[i].Connect(server_endpoint); } //update drivers for (int i = 0; i < numberOfClients; i++) { client_driversArray[i].ScheduleUpdate().Complete(); } server_driver.ScheduleUpdate().Complete(); //accept connections for (int i = 0; i < numberOfClients; i++) { connectionToClientArray[i] = server_driver.Accept(); ev = PollDriverAndFindDataEvent(ref server_driver, connectionToClientArray[i], NetworkEvent.Type.Empty); Assert.IsTrue(ev == NetworkEvent.Type.Empty, "Not empty NetworkEvent on the server appeared"); ev = PollDriverAndFindDataEvent(ref client_driversArray[i], clientToServerConnectionsArray[i], NetworkEvent.Type.Connect); Assert.IsTrue(ev == NetworkEvent.Type.Connect, "NetworkEvent should have Type.Connect on the client"); } //close connections for (int i = 0; i < numberOfClients; i++) { clientToServerConnectionsArray[i].Close(client_driversArray[i]); //update drivers client_driversArray[i].ScheduleUpdate().Complete(); ev = PollDriverAndFindDataEvent(ref server_driver, connectionToClientArray[i], NetworkEvent.Type.Disconnect); Assert.IsTrue(ev == NetworkEvent.Type.Disconnect, "NetworkEvent.Type.Disconnect was expected to appear, but " + ev + " appeared"); } server_driver.Dispose(); for (int i = 0; i < numberOfClients; i++) { client_driversArray[i].Dispose(); } connectionToClientArray.Dispose(); clientToServerConnectionsArray.Dispose(); yield return(null); }
public void OnDestroy() { localDriver.Dispose(); }
public static void StopServer() { Driver.Dispose(); Console.Log("Stopped server."); }