¡@

Home 

c++ Programming Glossary: af_unix

Unix Domain : connect() : No such file or directory

http://stackoverflow.com/questions/11631578/unix-domain-connect-no-such-file-or-directory

attempt struct sockaddr_un address address.sun_family AF_UNIX memcpy address.sun_path filepath.c_str filepath.length address.sun_path.. the length of 61 characters address.sun_family is set to AF_UNIX AF_LOCAL address.sun_family has the size of 2 bytes no errors..

BSD Sockets - How to use non-blocking sockets?

http://stackoverflow.com/questions/6699488/bsd-sockets-how-to-use-non-blocking-sockets

is this socket new_sd is connection socket name.sa_family AF_UNIX strcpy name.sa_data 127.0.0.1 adrlen strlen name.sa_data sizeof.. name.sa_data sizeof name.sa_family make socket sock socket AF_UNIX SOCK_STREAM 0 if sock 0 printf nBind error m errno exit 1 unlink.. main int agrc char argv int sock new_sd adrlen sock socket AF_UNIX SOCK_STREAM 0 if sock 0 printf nserver socket failure m errno..