Constructors
Synopses
Declared in <util/sock.h>
Default construction is disabled: a Sock always wraps an existing socket.
Sock() = delete;
Copy constructor, disabled because closing the same socket twice is undesirable.
Move constructor, grab the socket from another object and close ours (if set).
Take ownership of an existent socket.
Parameters
Name |
Description |
other |
The socket wrapper that would be copied. |
s |
The socket descriptor to take ownership of. |
Created with MrDocs