[Linux-ha-dev] client API for binary data

Guochun Shi gshi at ncsa.uiuc.edu
Wed Jan 21 06:08:16 MST 2004


hello, ha-dev-list,


in the netstring implementation, I plan to add two API's for add/get binary data

adding a binary value field:
int 
ha_msg_add_binary(struct ha_msg * msg, const char * name, 
                  const void * value, size_t vallen);


gettting a binary value:

const void *
ha_msg_binary(const struct ha_msg * msg, const char * name, size_t * vallen)

@vallen returns the length of binary data
the function return the pointer to the binary value

any comment?

Thanks
-Guochun

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.community.tummy.com/pipermail/linux-ha-dev/attachments/20040121/cafa81a7/attachment.htm


More information about the Linux-HA-Dev mailing list