Hazy_Server Class Reference

This class creates socket server connection and accepts connection from clients. More...

#include <server_conn.h>

List of all members.

Public Member Functions

 Hazy_Server ()
 Default constructor.
void inetConn ()
 Initializes connection.
Hazy_WorkeracceptConnection ()
 Accepts connection.
void closeConnection ()
 Closes server connection.

Private Attributes

int sockfd
 server socket id
buffer_handle bh
 buffer for communication
addrinfo hints * servinfo
sockaddr_in their_addr
socklen_t sin_size
char ip [MAX_IPV4_SIZE]
int rc


Detailed Description

This class creates socket server connection and accepts connection from clients.


Constructor & Destructor Documentation

Hazy_Server::Hazy_Server (  ) 

Default constructor.


Member Function Documentation

Hazy_Worker * Hazy_Server::acceptConnection (  ) 

Accepts connection.

void Hazy_Server::closeConnection (  ) 

Closes server connection.

void Hazy_Server::inetConn (  ) 

Initializes connection.


Member Data Documentation

buffer_handle Hazy_Server::bh [private]

buffer for communication

char Hazy_Server::ip[MAX_IPV4_SIZE] [private]

int Hazy_Server::rc [private]

struct addrinfo hints* Hazy_Server::servinfo [private]

socklen_t Hazy_Server::sin_size [private]

int Hazy_Server::sockfd [private]

server socket id

struct sockaddr_in Hazy_Server::their_addr [private]


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7