MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / bind

Function bind

Win32Lib/Socket.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void bind(Socket& socket, const sockaddr_in& sa)
53{
54 if (::bind(socket.get(), reinterpret_cast<const sockaddr*>(&sa), sizeof(sa)) == SOCKET_ERROR)
55 WSAThrowLastError("bind");
56}
57
58bool WSARecvFrom(Socket& s, const WSABUF buffers[], DWORD bufferCount, DWORD* pNumberOfBytesRecvd, DWORD* pFlags, sockaddr_in& from, int& fromLen, WSAOVERLAPPED* pOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE pCompletionRoutine)
59{

Callers 1

SocketReaderMethod · 0.85

Calls 1

WSAThrowLastErrorFunction · 0.70

Tested by

no test coverage detected