• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using Unix Domain Sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Strange problem about connection got lost
  • Next by Date: Re: Simultaneous read() and write() on same TCP/IP socket
  • Previous by thread: Re: Strange problem about connection got lost
  • Index(es):
    • Date
    • Thread