HP Rp3440-4 - 9000 - 0 MB RAM Programmer's Manual page 154

Bsd sockets interface programmer’s guide
Hide thumbs Also See for Rp3440-4 - 9000 - 0 MB RAM:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents