c++ Programming Glossary: adrlen
BSD Sockets - How to use non-blocking sockets? http://stackoverflow.com/questions/6699488/bsd-sockets-how-to-use-non-blocking-sockets O_NONBLOCK int main int agrc char argv int sock new_sd adrlen sock is this socket new_sd is connection socket name.sa_family.. name.sa_family AF_UNIX strcpy name.sa_data 127.0.0.1 adrlen strlen name.sa_data sizeof name.sa_family make socket sock socket.. exit 1 unlink and bind unlink 127.0.0.1 if bind sock name adrlen 0 printf nBind error m errno listen if listen sock 5 0 printf..
Using select() for non-blocking sockets http://stackoverflow.com/questions/6715736/using-select-for-non-blocking-sockets sa sin6_addr int main int agrc char argv int status sock adrlen new_sd struct addrinfo hints struct addrinfo servinfo will point.. sa sin6_addr int main int agrc char argv int status sock adrlen struct addrinfo hints struct addrinfo servinfo will point to..
|