Using Unix Domain Sockets
Using Unix Domain Sockets
- Subject: Using Unix Domain Sockets
- From: eveningnick eveningnick <email@hidden>
- Date: Thu, 30 Dec 2010 23:11:44 +0300
hello
I am writing a daemon, that is controlled by GUI application using
Unix Domain Sockets. I am wondering, what is the right approach to
perform such a control: my daemon can receive few control messages
with parameters (say, in total 512 bytes = sizeof(ctrl_msg_code) +
sizeof(params_max_len)). How it is done usually in Domain Sockets IPC?
Should i send datagrams using sendto(), or maybe it is better to send
control messages as "ancillary" header (via sendmsg), leaving "buf"
empty? Is it the right usage of ancillary data buf? And will this
ancillary buffer handle 512 bytes of data on every unix system? I'm
just trying to simplify reading my opensource code by other people
and decrease the number of wtf's :) Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden