Go to the FreeLists Home Page Home Signup Help Login
 



[openbeosnetteam] || [Date Prev] [10-2005 Date Index] [Date Next] || [Thread Prev] [10-2005 Thread Index] [Thread Next]

[openbeosnetteam] Unix Sockets

  • From: "Sylvain Kerjean" <sylvain_kerjean@xxxxxxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Wed, 05 Oct 2005 13:47:58 -0400
Hello everybody,

i think to implement unix sockets (AF_UNIX domain) in the following fashion :

socket() : allocate a file descriptor

bind() : associate the file descriptor with a file (with fopen())

accept() : returns the file descriptor or dup()

for unnamed socket, create a pipe with mkfifo

For block/non_block options, set the corresponding options on the file.

Do you think this should be allright ?


Other questions :
-where can i find the source of the ioctl() function in the source tree ? It seems to do all the work in the socket() function.








[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.