OSSIA
Open Scenario System for Interactive Application
Network context

Event loop to process messages. More...

Detailed Description

Event loop to process messages.

Usage:

ossia_network_context_t ctx = ossia_network_context_create(device);
...
ossia_protocol_osc_create(ctx, ...);
...
// callbacks due to incoming messages will be called
// in the thread where this is being run
ossia_network_context_poll(ctx);
...
ossia_network_context_free(mq);
ossia_network_context_t ossia_network_context_create()
Create a new network context.
Definition: ossia_network_context.cpp:9

Typedefs

typedef void * ossia_network_context_t
 

Functions

OSSIA_EXPORT ossia_network_context_t ossia_network_context_create ()
 Create a new network context.
 
OSSIA_EXPORT void ossia_network_context_free (ossia_network_context_t)
 Free a network context.
 
OSSIA_EXPORT void ossia_network_context_poll (ossia_network_context_t)
 Process the network events currently pending.