Create a real socket from the operating system.
Declared in <netbase.h>
std::unique_ptr<Sock>
CreateSockOS(
int domain,
int type,
int protocol);
pointer to the created Sock object or unique_ptr that owns nothing in case of failure
| Name | Description |
|---|---|
| domain [in] | Communications domain, first argument to the socket(2) syscall. |
| type [in] | Type of the socket, second argument to the socket(2) syscall. |
| protocol [in] | The particular protocol to be used with the socket, third argument to the socket(2) syscall. |