Create a real socket from the operating system.
Synopsis
Declared in <netbase.h>
std::unique_ptr<Sock>
CreateSockOS(
int domain,
int type,
int protocol);
Return Value
pointer to the created Sock object or unique_ptr that owns nothing in case of failure
Parameters
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. |
Created with MrDocs