10#include <sys/socket.h>
12#include <netinet/in.h>
31using in_addr_t = UINT32;
37[[nodiscard]] ptrdiff_t
sock_send(
SOCKET sd,
const char* buf,
size_t count);
70 static inline int counter = 0;
This file implemented 3 utility functions:
constexpr int OPENMSX_INVALID_SOCKET
ptrdiff_t sock_send(SOCKET sd, const char *buf, size_t count)
constexpr int SOCKET_ERROR
void sock_close(SOCKET sd)
ptrdiff_t sock_recv(SOCKET sd, char *buf, size_t count)
SocketActivator(SocketActivator &&)=delete
SocketActivator(const SocketActivator &)=delete
SocketActivator & operator=(const SocketActivator &)=delete
SocketActivator & operator=(SocketActivator &&)=delete