sockpp
Modern C++ socket library wrapper
Classes | Macros | Typedefs | Functions | Variables
socket.h File Reference

Classes for TCP & UDP socket. More...

#include "sockpp/sock_address.h"
#include <chrono>
#include <string>
#include <tuple>

Go to the source code of this file.

Classes

class  sockpp::socket
 Base class for socket objects. More...
 
class  sockpp::socket_initializer
 RAII class to initialize and then shut down the library. More...
 

Typedefs

typedef int sockpp::socket_t
 The OS socket handle.
 

Functions

timeval sockpp::to_timeval (const std::chrono::microseconds &dur)
 
template<class Rep , class Period >
timeval sockpp::to_timeval (const std::chrono::duration< Rep, Period > &dur)
 

Variables

const socket_t sockpp::INVALID_SOCKET = -1
 Invalid socket descriptor.
 

Detailed Description

Classes for TCP & UDP socket.

Author
Frank Pagliughi
SoRo Systems, Inc.
www.sorosys.com
Date
December 2014