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

Function bind

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

Addressing

Source from the content-addressed store, hash-verified

143
144// Addressing
145int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) FL_NOEXCEPT {
146 SOCKET sock = static_cast<SOCKET>(sockfd);
147 int result = ::bind(sock, reinterpret_cast<const ::sockaddr*>(addr), addrlen); // ok reinterpret cast
148 return (result == SOCKET_ERROR) ? -1 : 0;
149}
150
151int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) FL_NOEXCEPT {
152 SOCKET sock = static_cast<SOCKET>(sockfd);

Callers 4

bindMethod · 0.50
bindMethod · 0.50
setup_listen_socketMethod · 0.50
plat_bindFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected