|
uvco 0.1
|
#include <uds.h>


Public Member Functions | |
| UnixStreamServer (const UnixStreamServer &)=delete | |
| UnixStreamServer (UnixStreamServer &&)=default | |
| UnixStreamServer & | operator= (const UnixStreamServer &)=delete |
| UnixStreamServer & | operator= (UnixStreamServer &&)=default |
| ~UnixStreamServer ()=default | |
| UnixStreamServer (const Loop &loop, std::string_view bindPath, int flags=0) | |
| Construct and bind a Unix SOCK_STREAM socket. | |
| void | chmod (int mode) |
| Public Member Functions inherited from uvco::StreamServerBase< uv_pipe_t, UnixStream > | |
| StreamServerBase (const StreamServerBase &)=delete | |
| StreamServerBase & | operator= (const StreamServerBase &)=delete |
| ~StreamServerBase () | |
| MultiPromise< UnixStream > | listen (int backlog=128) |
| AddressHandle | getSockname () const |
| Get the address the server is bound to. | |
| void | close () |
Additional Inherited Members | |
| Protected Attributes inherited from uvco::StreamServerBase< uv_pipe_t, UnixStream > | |
| std::unique_ptr< uv_pipe_t > | socket_ |
A server that listens for incoming connections on a Unix domain socket (type SOCK_STREAM).
After constructing the server, call listen() to start listening. This will return a MultiPromise<UnixStream>, which will yield a new UnixStream for each incoming connection. The peer address can be obtained using the getPeerName() method on UnixStream.
|
delete |
|
default |
|
default |
| uvco::UnixStreamServer::UnixStreamServer | ( | const Loop & | loop, |
| std::string_view | bindPath, | ||
| int | flags = 0 ) |
Construct and bind a Unix SOCK_STREAM socket.
| loop | The loop to run on. |
| bindPath | The path to bind to. |
| flags | Flags to pass to uv_pipe_bind2. Can be UV_PIPE_NO_TRUNCATE. |
| void uvco::UnixStreamServer::chmod | ( | int | mode | ) |
Configure permissions for socket; flags may be either or a combination of UV_READABLE and UV_WRITABLE.
|
delete |
|
default |