folly::netops::socket

Creates a socket.

Synopsis

Declared in <folly/net/NetOps.h>

NetworkSocket
socket(
    int af,
    int type,
    int protocol);

Return Value

The new socket, or an invalid socket on error.

Parameters

NameDescription
afThe address family.
typeThe socket type.
protocolThe protocol.