nngn
Loading...
Searching...
No Matches
nngn::Socket Class Reference

#include <socket.h>

Collaboration diagram for nngn::Socket:

Classes

class  lock
 

Public Member Functions

 Socket ()
 
 Socket (const Socket &)=delete
 
 Socket (const Socket &&)=delete
 
Socketoperator= (const Socket &)=delete
 
Socketoperator= (const Socket &&)=delete
 
 ~Socket ()
 
bool init (std::string_view path)
 
template<typename F >
bool process (F f)
 
 Socket ()
 
 Socket (const Socket &)=delete
 
 Socket (const Socket &&)=delete
 
Socketoperator= (const Socket &)=delete
 
Socketoperator= (const Socket &&)=delete
 
 ~Socket ()
 
bool init (std::string_view path)
 
template<typename F >
bool process (F f)
 

Private Member Functions

bool accept ()
 
bool process (std::string *buffer)
 
bool recv (std::string *buffer)
 
bool accept ()
 
bool process (std::string *buffer)
 
bool recv (std::string *buffer)
 

Private Attributes

lock m_lock = {}
 
int fd = -1
 
std::vector< std::byte > poll_data = {}
 
std::string path = {}
 

Constructor & Destructor Documentation

◆ Socket() [1/6]

nngn::Socket::Socket ( )

◆ Socket() [2/6]

nngn::Socket::Socket ( const Socket )
delete

◆ Socket() [3/6]

nngn::Socket::Socket ( const Socket &&  )
delete

◆ ~Socket() [1/2]

nngn::Socket::~Socket ( )

◆ Socket() [4/6]

nngn::Socket::Socket ( )

◆ Socket() [5/6]

nngn::Socket::Socket ( const Socket )
delete

◆ Socket() [6/6]

nngn::Socket::Socket ( const Socket &&  )
delete

◆ ~Socket() [2/2]

nngn::Socket::~Socket ( )

Member Function Documentation

◆ accept() [1/2]

bool nngn::Socket::accept ( )
private

◆ accept() [2/2]

bool nngn::Socket::accept ( )
private

◆ init() [1/2]

bool nngn::Socket::init ( std::string_view  path)
Here is the caller graph for this function:

◆ init() [2/2]

bool nngn::Socket::init ( std::string_view  path)

◆ operator=() [1/4]

Socket & nngn::Socket::operator= ( const Socket &&  )
delete

◆ operator=() [2/4]

Socket & nngn::Socket::operator= ( const Socket &&  )
delete

◆ operator=() [3/4]

Socket & nngn::Socket::operator= ( const Socket )
delete

◆ operator=() [4/4]

Socket & nngn::Socket::operator= ( const Socket )
delete

◆ process() [1/4]

template<typename F >
bool nngn::Socket::process ( F  f)
Here is the call graph for this function:

◆ process() [2/4]

template<typename F >
bool nngn::Socket::process ( F  f)

◆ process() [3/4]

bool nngn::Socket::process ( std::string *  buffer)
private
Here is the caller graph for this function:

◆ process() [4/4]

bool nngn::Socket::process ( std::string *  buffer)
private

◆ recv() [1/2]

bool nngn::Socket::recv ( std::string *  buffer)
private

◆ recv() [2/2]

bool nngn::Socket::recv ( std::string *  buffer)
private

Member Data Documentation

◆ fd

int nngn::Socket::fd = -1
private

◆ m_lock

lock nngn::Socket::m_lock = {}
private

◆ path

std::string nngn::Socket::path = {}
private

◆ poll_data

std::vector< std::byte > nngn::Socket::poll_data = {}
private

The documentation for this class was generated from the following files: