[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.
Other related posts: