sockets::raw_socket Class Reference

#include <raw_socket.h>

Inheritance diagram for sockets::raw_socket:
Inheritance graph
[legend]
Collaboration diagram for sockets::raw_socket:
Collaboration graph
[legend]

List of all members.

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

Enumerator:
SELECTING_JUST_WRITE 
SELECTING_JUST_READ 

Definition at line 98 of file raw_socket.h.


Constructor & Destructor Documentation

sockets::raw_socket::raw_socket (  ) 

Definition at line 80 of file raw_socket.cpp.

sockets::raw_socket::~raw_socket (  ) 

Definition at line 84 of file raw_socket.cpp.

References basis::WHACK().


Member Function Documentation

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
int sockets::raw_socket::close ( basis::un_int socket  ) 
sockets::raw_socket::DEFINE_CLASS_NAME ( "raw_socket"   ) 
astring sockets::raw_socket::interest_name ( int  to_name  )  [static]
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().

int sockets::raw_socket::select ( basis::int_array read_sox,
basis::int_array write_sox,
int  timeout = 0 
) const
int sockets::raw_socket::select ( basis::un_int  socket,
int  selection_mode,
int  timeout = 0 
) const
bool sockets::raw_socket::set_broadcast ( basis::un_int  socket,
bool  broadcasting = true 
)

Definition at line 161 of file raw_socket.cpp.

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

Referenced by sockets::spocket::connect().

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

Definition at line 185 of file raw_socket.cpp.

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

Referenced by sockets::spocket::connect().

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

Definition at line 149 of file raw_socket.cpp.

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

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

Definition at line 173 of file raw_socket.cpp.

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

Referenced by sockets::spocket::accept(), and sockets::spocket::connect().


The documentation for this class was generated from the following files:
Generated on Sat Jan 28 04:25:54 2012 for hoople2 project by  doxygen 1.6.3