feisty meow concerns codebase  2.140
sockets::raw_socket Class Reference

#include <raw_socket.h>

Inheritance diagram for sockets::raw_socket:
Collaboration diagram for sockets::raw_socket:

Public Types

enum  select_types { SELECTING_JUST_WRITE = 0x1 , SELECTING_JUST_READ = 0x2 }
 

Public Member Functions

 raw_socket ()
 
 ~raw_socket ()
 
 DEFINE_CLASS_NAME ("raw_socket")
 
int close (basis::un_int &socket)
 
int ioctl (basis::un_int socket, int request, void *argp) const
 
bool set_non_blocking (basis::un_int socket, bool non_blocking=true)
 
bool set_nagle_algorithm (basis::un_int socket, bool use_nagle=true)
 
bool set_broadcast (basis::un_int socket, bool broadcasting=true)
 
bool set_reuse_address (basis::un_int socket, bool reuse=true)
 
bool set_keep_alive (basis::un_int socket, bool keep_alive=true)
 
int select (basis::un_int socket, int selection_mode, int timeout=0) const
 
int select (basis::int_array &read_sox, basis::int_array &write_sox, int timeout=0) const
 
int analyze_select_result (basis::un_int socket, int mode, fd_set_wrapper &read_list, fd_set_wrapper &write_list, fd_set_wrapper &exceptions) const
 

Static Public Member Functions

static basis::astring interest_name (int to_name)
 

Detailed Description

Definition at line 55 of file raw_socket.h.

Member Enumeration Documentation

◆ select_types

Enumerator
SELECTING_JUST_WRITE 
SELECTING_JUST_READ 

Definition at line 95 of file raw_socket.h.

Constructor & Destructor Documentation

◆ raw_socket()

sockets::raw_socket::raw_socket ( )

Definition at line 80 of file raw_socket.cpp.

◆ ~raw_socket()

sockets::raw_socket::~raw_socket ( )

Definition at line 84 of file raw_socket.cpp.

References basis::WHACK().

Member Function Documentation

◆ analyze_select_result()

int sockets::raw_socket::analyze_select_result ( basis::un_int  socket,
int  mode,
fd_set_wrapper &  read_list,
fd_set_wrapper &  write_list,
fd_set_wrapper &  exceptions 
) const

◆ close()

int sockets::raw_socket::close ( basis::un_int socket)

Definition at line 89 of file raw_socket.cpp.

Referenced by sockets::socket_minder::push_receives().

◆ DEFINE_CLASS_NAME()

sockets::raw_socket::DEFINE_CLASS_NAME ( "raw_socket"  )

◆ interest_name()

astring sockets::raw_socket::interest_name ( int  to_name)
static

◆ ioctl()

int sockets::raw_socket::ioctl ( basis::un_int  socket,
int  request,
void *  argp 
) const

Definition at line 123 of file raw_socket.cpp.

Referenced by set_non_blocking().

◆ select() [1/2]

◆ select() [2/2]

int sockets::raw_socket::select ( basis::un_int  socket,
int  selection_mode,
int  timeout = 0 
) const

◆ set_broadcast()

bool sockets::raw_socket::set_broadcast ( basis::un_int  socket,
bool  broadcasting = true 
)

Definition at line 167 of file raw_socket.cpp.

References FUNCDEF, LOG, basis::negative(), and OPTYPE.

◆ set_keep_alive()

bool sockets::raw_socket::set_keep_alive ( basis::un_int  socket,
bool  keep_alive = true 
)

Definition at line 191 of file raw_socket.cpp.

References FUNCDEF, LOG, basis::negative(), and OPTYPE.

◆ set_nagle_algorithm()

bool sockets::raw_socket::set_nagle_algorithm ( basis::un_int  socket,
bool  use_nagle = true 
)

Definition at line 155 of file raw_socket.cpp.

References FUNCDEF, LOG, basis::negative(), and OPTYPE.

◆ set_non_blocking()

bool sockets::raw_socket::set_non_blocking ( basis::un_int  socket,
bool  non_blocking = true 
)

◆ set_reuse_address()

bool sockets::raw_socket::set_reuse_address ( basis::un_int  socket,
bool  reuse = true 
)

Definition at line 179 of file raw_socket.cpp.

References FUNCDEF, LOG, basis::negative(), and OPTYPE.


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