Lines Matching full:multiplexer
15 * a simple stream multiplexer that works as follows:
1208 typedef struct Multiplexer Multiplexer;
1232 Multiplexer* multiplexer;
1235 struct Multiplexer {
1244 static int multiplexer_open_channel( Multiplexer* mult, Packet* p );
1245 static void multiplexer_close_channel( Multiplexer* mult, int channel );
1246 static void multiplexer_serial_send( Multiplexer* mult, int channel, Packet* p );
1289 multiplexer_serial_send(c->multiplexer, c->channel, p);
1309 * the multiplexer to start registration for
1314 c->channel = multiplexer_open_channel(c->multiplexer, p);
1335 multiplexer_close_channel(c->multiplexer, c->channel);
1341 /* a function called when the multiplexer received a registration
1382 client_new( Multiplexer* mult,
1392 c->multiplexer = mult;
1414 /** GLOBAL MULTIPLEXER
1419 multiplexer_find_client( Multiplexer* mult, int channel )
1434 multiplexer_handle_control( Multiplexer* mult, Packet* p )
1493 multiplexer_serial_receive( Multiplexer* mult, Packet* p )
1516 multiplexer_serial_close( Multiplexer* mult )
1523 multiplexer_serial_send( Multiplexer* mult, int channel, Packet* p )
1541 multiplexer_open_channel( Multiplexer* mult, Packet* service )
1573 multiplexer_close_channel( Multiplexer* mult, int channel )
1593 multiplexer_control_accept( Multiplexer* m, Packet* p )
1607 multiplexer_control_close( Multiplexer* m )
1609 fatal("unexpected multiplexer control close");
1613 multiplexer_init( Multiplexer* m, const char* serial_dev )
1665 static Multiplexer _multiplexer[1];
1669 Multiplexer* m = _multiplexer;