HP Rp7410 BSD Sockets Interface Programmer's Guide - Page 154
man for more information
View all HP Rp7410 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 154 highlights
Using UNIX Domain Datagram Sockets Writing the Server and Client Processes strcpy(servaddr.sun_path, SOCKET_PATH); unlink(SOCKET_PATH); bind(s, &servaddr, sizeof(struct sockaddr_un)); When to Bind Socket Addresses The server process should bind socket addresses after socket is created and before any other BSD Sockets system calls. Refer to the bind(2) man page for more information on bind. 154 Chapter 7
154
Chapter 7
Using UNIX Domain Datagram Sockets
Writing the Server and Client Processes
strcpy(servaddr.sun_path, SOCKET_PATH);
unlink(SOCKET_PATH);
bind(s, &servaddr, sizeof(struct sockaddr_un));
When to Bind Socket Addresses
The server process should bind socket addresses after socket is created
and before any other BSD Sockets system calls. Refer to the
bind(2)
man page for more information on
bind
.