#include "types.hh"
#include "file-descriptor.hh"
#include <unistd.h>
Go to the source code of this file.
◆ Socket
Initial value:Often we want to use Descriptor
, but Windows makes a slightly stronger file descriptor vs socket distinction, at least at the level of C types.
◆ bind()
void nix::bind |
( |
Socket | fd, |
|
|
const std::string & | path ) |
Bind a Unix domain socket to a path.
◆ connect()
void nix::connect |
( |
Socket | fd, |
|
|
const std::string & | path ) |
Connect to a Unix domain socket.
◆ createUnixDomainSocket() [1/2]
AutoCloseFD nix::createUnixDomainSocket |
( |
| ) |
|
Create a Unix domain socket.
◆ createUnixDomainSocket() [2/2]
AutoCloseFD nix::createUnixDomainSocket |
( |
const Path & | path, |
|
|
mode_t | mode ) |
Create a Unix domain socket in listen mode.