PlasCom2  1.0
XPACC Multi-physics simluation application
Server Class Reference

Detailed Description

Definition at line 30 of file NetUtils.H.

#include <NetUtils.H>

Public Member Functions

 Server ()
 
struct sockaddr_in & Address ()
 
const struct sockaddr_in Address () const
 
std::vector< int > & ClientDescriptors ()
 
const std::vector< int > & ClientDescriptors () const
 
int & Descriptor ()
 
int Descriptor () const
 
std::vector< struct sockaddr_in > & ClientAddresses ()
 
const std::vector< struct sockaddr_in > & ClientAddresses () const
 
int SimpleInit (int port=0)
 
int Accept ()
 
int CloseAll ()
 
 ~Server ()
 

Private Attributes

int _server_descriptor
 
struct sockaddr_in _server_addy
 
std::vector< int > _client_descriptors
 
std::vector< struct sockaddr_in > _client_addys
 
Collaboration diagram for Server:

Constructor & Destructor Documentation

◆ Server()

Server ( )
inline

Definition at line 37 of file NetUtils.H.

References Server::_server_addy.

◆ ~Server()

~Server ( )
inline

Definition at line 98 of file NetUtils.H.

References Server::CloseAll().

Here is the call graph for this function:

Member Function Documentation

◆ Accept()

int Accept ( )
inline

Definition at line 75 of file NetUtils.H.

Referenced by ix::TestTCPInterface().

Here is the caller graph for this function:

◆ Address() [1/2]

struct sockaddr_in& Address ( )
inline

Definition at line 43 of file NetUtils.H.

References Server::_server_addy.

◆ Address() [2/2]

const struct sockaddr_in Address ( ) const
inline

Definition at line 44 of file NetUtils.H.

References Server::_server_addy.

◆ ClientAddresses() [1/2]

std::vector<struct sockaddr_in>& ClientAddresses ( )
inline

Definition at line 49 of file NetUtils.H.

◆ ClientAddresses() [2/2]

const std::vector<struct sockaddr_in>& ClientAddresses ( ) const
inline

Definition at line 50 of file NetUtils.H.

◆ ClientDescriptors() [1/2]

std::vector<int>& ClientDescriptors ( )
inline

Definition at line 45 of file NetUtils.H.

◆ ClientDescriptors() [2/2]

const std::vector<int>& ClientDescriptors ( ) const
inline

Definition at line 46 of file NetUtils.H.

◆ CloseAll()

int CloseAll ( )
inline

Definition at line 91 of file NetUtils.H.

Referenced by Server::~Server().

Here is the caller graph for this function:

◆ Descriptor() [1/2]

int& Descriptor ( )
inline

Definition at line 47 of file NetUtils.H.

Referenced by ix::TestTCPInterface().

Here is the caller graph for this function:

◆ Descriptor() [2/2]

int Descriptor ( ) const
inline

Definition at line 48 of file NetUtils.H.

◆ SimpleInit()

int SimpleInit ( int  port = 0)
inline

Definition at line 51 of file NetUtils.H.

References Server::_server_addy.

Referenced by ix::TestTCPInterface().

Here is the caller graph for this function:

Member Data Documentation

◆ _client_addys

std::vector<struct sockaddr_in> _client_addys
private

Definition at line 35 of file NetUtils.H.

◆ _client_descriptors

std::vector<int> _client_descriptors
private

Definition at line 34 of file NetUtils.H.

◆ _server_addy

struct sockaddr_in _server_addy
private

◆ _server_descriptor

int _server_descriptor
private

Definition at line 32 of file NetUtils.H.


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