MASA-Core
Public Member Functions | Private Member Functions | Private Attributes
SocketCellsReader Class Reference

Detailed Description

Definition at line 29 of file SocketCellsReader.hpp.

#include <SocketCellsReader.hpp>

Inheritance diagram for SocketCellsReader:
CellsReader

List of all members.

Public Member Functions

 SocketCellsReader (string hostname, int port)
virtual ~SocketCellsReader ()
virtual void close ()
virtual int getType ()
virtual int read (cell_t *buf, int len)

Private Member Functions

void init ()
int resolveDNS (const char *hostname, char *ip)

Private Attributes

string hostname
int port
int socketfd

Constructor & Destructor Documentation

SocketCellsReader::SocketCellsReader ( string  hostname,
int  port 
)

Definition at line 33 of file SocketCellsReader.cpp.

Definition at line 40 of file SocketCellsReader.cpp.


Member Function Documentation

void SocketCellsReader::close ( ) [virtual]

Implements CellsReader.

Definition at line 44 of file SocketCellsReader.cpp.

int SocketCellsReader::getType ( ) [virtual]

Implements CellsReader.

Definition at line 52 of file SocketCellsReader.cpp.

void SocketCellsReader::init ( ) [private]

Definition at line 70 of file SocketCellsReader.cpp.

int SocketCellsReader::read ( cell_t buf,
int  len 
) [virtual]

Implements CellsReader.

Definition at line 56 of file SocketCellsReader.cpp.

int SocketCellsReader::resolveDNS ( const char *  hostname,
char *  ip 
) [private]

Definition at line 122 of file SocketCellsReader.cpp.


Member Data Documentation

string SocketCellsReader::hostname [private]

Definition at line 39 of file SocketCellsReader.hpp.

int SocketCellsReader::port [private]

Definition at line 40 of file SocketCellsReader.hpp.

Definition at line 41 of file SocketCellsReader.hpp.


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