The state associated with a muxer thread. More...
#include <generic_netcode.hh>
Public Member Functions | |
generic_netcode (const interest_policy_type &policy=interest_policy_type(), const marshalling_type &_factory=marshalling_type()) | |
generic_netcode (const generic_netcode &)=delete | |
void | new_connection (void *muxer, void *connection, uint64_t id) |
Informs the netcode of a new connection. More... | |
void | new_simulation_message (void *muxer, uint64_t worker_id, uint64_t tick, const void *data, size_t data_len) |
Informs the netcode of a new message from the simulation. More... | |
void | notify_writable (void *muxer, uint64_t id) |
Notifies the netcode that the specified connection is writable. More... | |
void | drop_connection (void *muxer, uint64_t id) |
Notifies the netcode that the specified connection has been dropped. More... | |
The state associated with a muxer thread.
aether::netcode::generic_netcode< Marshaller, InterestPolicy >::generic_netcode | ( | const interest_policy_type & | policy = interest_policy_type() , |
const marshalling_type & | _factory = marshalling_type() |
||
) |
|
delete |
void aether::netcode::generic_netcode< Marshaller, InterestPolicy >::drop_connection | ( | void * | muxer, |
uint64_t | id | ||
) |
Notifies the netcode that the specified connection has been dropped.
void aether::netcode::generic_netcode< Marshaller, InterestPolicy >::new_connection | ( | void * | muxer, |
void * | connection, | ||
uint64_t | id | ||
) |
Informs the netcode of a new connection.
muxer | the muxer context |
connection | the opaque connection context |
id | an integer identifier for this connection |
void aether::netcode::generic_netcode< Marshaller, InterestPolicy >::new_simulation_message | ( | void * | muxer, |
uint64_t | worker_id, | ||
uint64_t | tick, | ||
const void * | data, | ||
size_t | data_len | ||
) |
Informs the netcode of a new message from the simulation.
muxer | the muxer context |
worker_id | the id of the worker that sent the message |
tick | the tick of the message |
data | the raw message data |
data_len | the message length in bytes |
void aether::netcode::generic_netcode< Marshaller, InterestPolicy >::notify_writable | ( | void * | muxer, |
uint64_t | id | ||
) |
Notifies the netcode that the specified connection is writable.