Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::IPServer Class Reference

#include <IPopen.h>

Collaboration diagram for PLearn::IPServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IPServer (int port_no, int max_connections)
 IPServer (int max_connections_)
 IPServer ()
 ~IPServer ()
int get_socket_fd ()
sockaddr_in * get_address ()
string machine_name ()
int port_no ()

Static Public Member Functions

void set_ip_port (int port_no, int max_connections_=100)

Static Public Attributes

int ip_port = 15000
int max_connections = 100

Protected Attributes

int socket_fd
int port
sockaddr_in address

Private Member Functions

void DelayedConstructor (int port_no, int max_connections_)

Constructor & Destructor Documentation

PLearn::IPServer::IPServer int  port_no,
int  max_connections
[inline]
 

Definition at line 64 of file IPopen.h.

References DelayedConstructor().

PLearn::IPServer::IPServer int  max_connections_  )  [inline]
 

Definition at line 67 of file IPopen.h.

References DelayedConstructor(), and ip_port.

PLearn::IPServer::IPServer  )  [inline]
 

Definition at line 70 of file IPopen.h.

References DelayedConstructor(), ip_port, and max_connections.

PLearn::IPServer::~IPServer  )  [inline]
 

Definition at line 73 of file IPopen.h.

References socket_fd.


Member Function Documentation

void PLearn::IPServer::DelayedConstructor int  port_no,
int  max_connections_
[inline, private]
 

Definition at line 88 of file IPopen.h.

References DelayedConstructor(), max_connections, PLERROR, port, and socket_fd.

Referenced by DelayedConstructor(), and IPServer().

struct sockaddr_in* PLearn::IPServer::get_address  )  [inline]
 

Definition at line 79 of file IPopen.h.

References address.

Referenced by PLearn::IPopen::establish_communication().

int PLearn::IPServer::get_socket_fd  )  [inline]
 

Definition at line 78 of file IPopen.h.

References socket_fd.

Referenced by PLearn::IPopen::establish_communication().

string PLearn::IPServer::machine_name  )  [inline]
 

Definition at line 80 of file IPopen.h.

References PLearn::hostname().

int PLearn::IPServer::port_no  )  [inline]
 

Definition at line 81 of file IPopen.h.

References port.

void PLearn::IPServer::set_ip_port int  port_no,
int  max_connections_ = 100
[inline, static]
 

Definition at line 109 of file IPopen.h.

References set_ip_port().

Referenced by set_ip_port().


Member Data Documentation

struct sockaddr_in PLearn::IPServer::address [protected]
 

Definition at line 86 of file IPopen.h.

Referenced by get_address().

int PLearn::IPServer::ip_port = 15000 [static]
 

Definition at line 52 of file IPopen.cc.

Referenced by IPServer().

int PLearn::IPServer::max_connections = 100 [static]
 

Definition at line 53 of file IPopen.cc.

Referenced by DelayedConstructor(), and IPServer().

int PLearn::IPServer::port [protected]
 

Definition at line 85 of file IPopen.h.

Referenced by DelayedConstructor(), and port_no().

int PLearn::IPServer::socket_fd [protected]
 

Definition at line 84 of file IPopen.h.

Referenced by DelayedConstructor(), get_socket_fd(), and ~IPServer().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:24:33 2004 for PLearn by doxygen 1.3.7