O2 2.0
A communication protocol for interactive music and media applications.
|
#include <o2network.h>
Public Attributes | |
union { | |
struct O2netmsg * next | |
link for application use | |
int64_t pad_if_needed | |
make sure allocated is 8-byte aligned | |
}; | |
int32_t | length |
length of message in data part | |
char | payload [4] |
data | |
The o2n_info structure tells us info about each socket. For Unix, there is a parallel structure, fds, that contains an fds parameter for poll().
In o2n_info, we have the socket, a handler for the socket, and buffer info to store incoming data, the state of outgoing data, and the service the socket is attached to. This structure is also used to represent a remote service if the net_tag is NET_TCP_SOCKET.