pstore2
Classes | Typedefs | Functions
descriptor.hpp File Reference

Provides a platorm-independent "descriptor" class for accessing pipes and sockets. More...

#include <cerrno>
#include <ostream>
#include <netinet/in.h>
#include <unistd.h>
Include dependency graph for descriptor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pstore::details::descriptor< DescriptorTraits >
 DescriptorTraits is a traits structure of the following form: More...
 
class  pstore::details::posix_descriptor_traits
 
struct  std::hash< pstore::details::descriptor< DescriptorTraits > >
 

Typedefs

using pstore::details::socket_descriptor = descriptor< posix_descriptor_traits >
 
using pstore::details::pipe_descriptor = descriptor< posix_descriptor_traits >
 
using pstore::socket_descriptor = details::socket_descriptor
 
using pstore::pipe_descriptor = details::pipe_descriptor
 

Functions

template<typename DescriptorTraits >
std::ostream & pstore::details::operator<< (std::ostream &os, descriptor< DescriptorTraits > const &fd)
 

Detailed Description

Provides a platorm-independent "descriptor" class for accessing pipes and sockets.