//! @brief Registers a callback with the network connection. The callback receives the data from the network. public NetworkConnection(NetworkConnectionCallback callback) { m_callback = callback; }