openMSX
Classes | Namespaces | Typedefs | Functions | Variables
Socket.hh File Reference
#include <cassert>
#include <cstddef>
#include <string>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <unistd.h>
Include dependency graph for Socket.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openmsx::SocketActivator
 

Namespaces

namespace  openmsx
 This file implemented 3 utility functions:
 

Typedefs

using openmsx::SOCKET = int
 
using openmsx::socklen_t = int
 

Functions

std::string openmsx::sock_error ()
 
void openmsx::sock_close (SOCKET sd)
 
ptrdiff_t openmsx::sock_recv (SOCKET sd, char *buf, size_t count)
 
ptrdiff_t openmsx::sock_send (SOCKET sd, const char *buf, size_t count)
 
void openmsx::sock_startup ()
 
void openmsx::sock_cleanup ()
 

Variables

constexpr int openmsx::OPENMSX_INVALID_SOCKET = -1
 
constexpr int openmsx::SOCKET_ERROR = -1