Need clarification

0 views
Skip to first unread message

lingu

unread,
May 10, 2008, 4:47:36 AM5/10/08
to Zumastor
Hi all,

Need help for understanding the macro outbead(SOCK, CODE, STRUCT,
VALUES...).
Feeling hard to understand.

please provide some detailed info about this macro.
and what exactly each parameter carries?
and what is returned by this macro?.

by,
Lingu.

Christopher Smith

unread,
May 10, 2008, 4:53:01 AM5/10/08
to lingu, Zumastor
It's a thin wrapper around writepipe() that wraps a typed message
payload in a message struct and serializes it along a socket. Basicaly,
ddsnap uses packed struct's for all of it's messaging, so a simple macro
like this is all you need to frame your messages.

--Chris

Reply all
Reply to author
Forward
0 new messages