feisty meow concerns codebase  2.140
sockets::socket_minder Class Reference

#include <socket_minder.h>

Inheritance diagram for sockets::socket_minder:
Collaboration diagram for sockets::socket_minder:

Public Member Functions

 socket_minder (processes::post_office &post, int parent_route, int event_type, int message)
 
virtual ~socket_minder ()
 
void disengage ()
 
 DEFINE_CLASS_NAME ("socket_minder")
 
basis::astring text_form () const
 
socket_datalock_socket_data (int socket)
 
void unlock_socket_data (socket_data *to_unlock)
 
bool add_socket_data (int socket, bool server, int server_socket, bool connected_mode, bool connection_pending)
 
bool remove_socket_data (int socket)
 
bool set_connection_pending (int socket, bool pending)
 
bool is_connection_pending (int socket)
 
bool register_interest (int socket, int interests)
 
virtual bool evaluate_interest (socket_data &to_examine)
 
int get_pending_server ()
 
bool zap_pending_server (int socket)
 
void put_pending_server (int to_put, bool at_head)
 
void get_sockets (basis::int_array &read_sox, basis::int_array &write_sox, basis::int_array &pending) const
 
bool owns_socket (int socket) const
 
void push_sends (socket_data &to_poke, int states)
 
void push_receives (socket_data &to_poke, int states)
 
bool handle_pending_connecters (socket_data &to_peek)
 
void snoozy_select ()
 

Detailed Description

Definition at line 40 of file socket_minder.h.

Constructor & Destructor Documentation

◆ socket_minder()

sockets::socket_minder::socket_minder ( processes::post_office post,
int  parent_route,
int  event_type,
int  message 
)

Definition at line 100 of file socket_minder.cpp.

References NULL_POINTER.

◆ ~socket_minder()

sockets::socket_minder::~socket_minder ( )
virtual

Definition at line 116 of file socket_minder.cpp.

References basis::WHACK().

Member Function Documentation

◆ add_socket_data()

bool sockets::socket_minder::add_socket_data ( int  socket,
bool  server,
int  server_socket,
bool  connected_mode,
bool  connection_pending 
)

◆ DEFINE_CLASS_NAME()

sockets::socket_minder::DEFINE_CLASS_NAME ( "socket_minder"  )

◆ disengage()

void sockets::socket_minder::disengage ( )

Definition at line 127 of file socket_minder.cpp.

◆ evaluate_interest()

◆ get_pending_server()

int sockets::socket_minder::get_pending_server ( )

◆ get_sockets()

void sockets::socket_minder::get_sockets ( basis::int_array read_sox,
basis::int_array write_sox,
basis::int_array pending 
) const

◆ handle_pending_connecters()

◆ is_connection_pending()

bool sockets::socket_minder::is_connection_pending ( int  socket)

◆ lock_socket_data()

socket_data * sockets::socket_minder::lock_socket_data ( int  socket)

◆ owns_socket()

bool sockets::socket_minder::owns_socket ( int  socket) const

Definition at line 220 of file socket_minder.cpp.

Referenced by snoozy_select().

◆ push_receives()

◆ push_sends()

◆ put_pending_server()

void sockets::socket_minder::put_pending_server ( int  to_put,
bool  at_head 
)

Definition at line 322 of file socket_minder.cpp.

References basis::array< contents >::insert().

◆ register_interest()

bool sockets::socket_minder::register_interest ( int  socket,
int  interests 
)

◆ remove_socket_data()

bool sockets::socket_minder::remove_socket_data ( int  socket)

Definition at line 266 of file socket_minder.cpp.

References evaluate_interest(), and FUNCDEF.

◆ set_connection_pending()

bool sockets::socket_minder::set_connection_pending ( int  socket,
bool  pending 
)

◆ snoozy_select()

◆ text_form()

astring sockets::socket_minder::text_form ( ) const

Definition at line 132 of file socket_minder.cpp.

References sockets::socket_data::text_form().

◆ unlock_socket_data()

void sockets::socket_minder::unlock_socket_data ( socket_data to_unlock)

◆ zap_pending_server()

bool sockets::socket_minder::zap_pending_server ( int  socket)

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