networkprocessor - TogetherGames/Public-Unity-CSharp GitHub Wiki

NetworkProcessor

Together::NetworkProcessor

Overview

The NetworkProcessor handles invoking network callbacks when server messages are made in thread unsafe environments. If the environment is set to thread unsafe, then the NetworkProcessoer is considered active and the Process() method must be called to invoke callbacks.


Members

bool Active

If set to true, the NetworkProcessor is in an active state(Thread unsafe environment).


Methods


Process()

When in an actively thread unsafe environment, calling this method will dequeue an awaiting callback. Always call this from a main thread when managing callbacks.

Note
If using Unity for your game, this handling is done for you

Returns void
Syntax
NetworkProcessor.Process(  )

⚠️ **GitHub.com Fallback** ⚠️