routing and proxy code for communication ports
Marcel Sondaar
Public Domain
comproxy.c | routing and proxy code for communication ports |
Functions | |
drv_peekmessageany | Checks if any message is waiting, including messages to others |
drv_peeksender | Checks the sender of the message currently at the front of the queue |
drv_readmessageany | Reads a message from the queue, independent of target |
drv_sendmessageany | sends a message over communication port |
int drv_peekmessageany( int * target )
Checks if any message is waiting, including messages to others
target | pointer to a variable to hold the destination address |
return | size of the waiting message, 0 if none present |
target | if not null, set to the destination address |
int drv_peeksender()
Checks the sender of the message currently at the front of the queue
none
return | sender of the waiting message, 0 if none present |
Checks if any message is waiting, including messages to others
int drv_peekmessageany( int * target )
Checks the sender of the message currently at the front of the queue
int drv_peeksender()
Reads a message from the queue, independent of target
int drv_readmessageany( char * dest )
sends a message over communication port
void drv_sendmessageany( unsigned int dest, unsigned int src, unsigned int size, char * buffer )