Cnetwork_connection_methods Class Reference

a virtual base class More...

#include <unix_buffer.H>

Inheritance diagram for Cnetwork_connection_methods:

Inheritance graph
[legend]
Collaboration diagram for Cnetwork_connection_methods:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~Cnetwork_connection_methods ()
void set_RCVBUF (const int size)
void set_SNDBUF (const int size)
int get_RCVBUF ()
 get buffer size for input
int get_SNDBUF ()
 get buffer size for output
void set_RCV_timeout (const int secs, const int u_secs=0)
 set a connection timeout for receiving data
void set_SND_timeout (const int secs, const int u_secs=0)
 set a connection timeout for sending data
int get_RCV_timeout ()
 get connection timeout for receiving data
int get_SND_timeout ()
 get connection timeout for sending data
void set_timeout (const int secs, const int u_secs=0)
 set a connection timeout for receiving and sending data
void set_TCP_NODELAY (const bool flag=true)
 set tcp connection to TCP_NODELAY mode (on/off)
bool get_TCP_NODELAY ()
 get tcp connection TCP_NODELAY mode (on/off)
void set_LINGER (const signed int seconds)
 set linger value (time that a dead connection lingers before it can be reassigned)
signed int get_LINGER ()
 get linger value (time that a dead connection lingers before it can be reassigned)
const std::string peer_info ()
const std::string socket_info ()
const std::string connection_info ()


Detailed Description

a virtual base class

Definition at line 452 of file unix_buffer.H.


Constructor & Destructor Documentation

virtual Cnetwork_connection_methods::~Cnetwork_connection_methods (  )  [inline, virtual]

Definition at line 455 of file unix_buffer.H.


Member Function Documentation

void Cnetwork_connection_methods::set_RCVBUF ( const int  size  )  [inline]

set buffer size for input

Parameters:
size new size of input buffer
Remarks:
  • throws an exception on failure
  • For network connections SO_RCVBUF should be set after calling socket() but before bind(); this is because the receiving window will be negotiated during bind().
  • for Linux, "/proc/sys/net/core/rmem_max" can be used to get/set the system limit

Definition at line 466 of file unix_buffer.H.

void Cnetwork_connection_methods::set_SNDBUF ( const int  size  )  [inline]

set buffer size for output

Parameters:
size new size of output buffer
Remarks:
  • throws an exception on failure
  • for Linux, "/proc/sys/net/core/wmem_max" can be used to get/set the system limit

Definition at line 481 of file unix_buffer.H.

int Cnetwork_connection_methods::get_RCVBUF (  )  [inline]

get buffer size for input

Definition at line 491 of file unix_buffer.H.

int Cnetwork_connection_methods::get_SNDBUF (  )  [inline]

get buffer size for output

Definition at line 505 of file unix_buffer.H.

void Cnetwork_connection_methods::set_RCV_timeout ( const int  secs,
const int  u_secs = 0 
) [inline]

set a connection timeout for receiving data

Definition at line 519 of file unix_buffer.H.

void Cnetwork_connection_methods::set_SND_timeout ( const int  secs,
const int  u_secs = 0 
) [inline]

set a connection timeout for sending data

Definition at line 530 of file unix_buffer.H.

int Cnetwork_connection_methods::get_RCV_timeout (  )  [inline]

get connection timeout for receiving data

Definition at line 541 of file unix_buffer.H.

int Cnetwork_connection_methods::get_SND_timeout (  )  [inline]

get connection timeout for sending data

Definition at line 555 of file unix_buffer.H.

void Cnetwork_connection_methods::set_timeout ( const int  secs,
const int  u_secs = 0 
) [inline]

set a connection timeout for receiving and sending data

Definition at line 569 of file unix_buffer.H.

void Cnetwork_connection_methods::set_TCP_NODELAY ( const bool  flag = true  )  [inline]

set tcp connection to TCP_NODELAY mode (on/off)

Definition at line 582 of file unix_buffer.H.

Referenced by Cprocess_clients::process_data_stream().

bool Cnetwork_connection_methods::get_TCP_NODELAY (  )  [inline]

get tcp connection TCP_NODELAY mode (on/off)

Definition at line 591 of file unix_buffer.H.

void Cnetwork_connection_methods::set_LINGER ( const signed int  seconds  )  [inline]

set linger value (time that a dead connection lingers before it can be reassigned)

Definition at line 602 of file unix_buffer.H.

signed int Cnetwork_connection_methods::get_LINGER (  )  [inline]

get linger value (time that a dead connection lingers before it can be reassigned)

Definition at line 615 of file unix_buffer.H.

const std::string Cnetwork_connection_methods::peer_info (  )  [inline]

Returns:
string that contains human readable information about the client who has initiated the network connection

Definition at line 634 of file unix_buffer.H.

const std::string Cnetwork_connection_methods::socket_info (  )  [inline]

Returns:
string that contains human readable information about the server who has "picked up" the network connection

Definition at line 644 of file unix_buffer.H.

const std::string Cnetwork_connection_methods::connection_info (  )  [inline]

Returns:
string that contains human readable information about the client who has initiated the network connection and the server who has "picked up" the network connection

Definition at line 655 of file unix_buffer.H.

Referenced by send_notification(), and wait_for_notification().


The documentation for this class was generated from the following file:
Generated on Wed Nov 7 23:30:58 2007 for Qsieve by  doxygen 1.5.4