1#ifndef NET_UnixStreamSocket_h__
2#define NET_UnixStreamSocket_h__
4#include "SocketHandle.h"
int receiveAll(void *buffer, size_t len)
receive exactly the requested amount unless the peer disconnects
void listen(int backlog=5)
listen for incoming connections
int sendAll(const void *buffer, size_t len)
send data through a connected socket
A simple class to provide strict ownership of socket handles.
UnixSocket(int type, int protocol)
allows a subclass to create new socket
SocketHandle< UnixStreamSocket > Handle
Handle for a new socket returned by accept().
Handle timedAccept(int timeout) const