MCPcopy Create free account
hub / github.com/FastLED/FastLED / socket

Function socket

src/platforms/win/socket_win.cpp.hpp:129–135  ·  view source on GitHub ↗

Core Socket Operations

Source from the content-addressed store, hash-verified

127
128// Core Socket Operations
129int socket(int domain, int type, int protocol) FL_NOEXCEPT {
130 if (!initialize_winsock()) {
131 return -1;
132 }
133 SOCKET sock = ::socket(domain, type, protocol);
134 return (sock == INVALID_SOCKET) ? -1 : static_cast<int>(sock);
135}
136
137int socketpair(int domain, int type, int protocol, int sv[2]) FL_NOEXCEPT {
138 // Windows doesn't support socketpair - return error

Callers

nothing calls this directly

Calls 1

initialize_winsockFunction · 0.85

Tested by

no test coverage detected