Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

indri::net::NetworkStream Class Reference

#include <NetworkStream.hpp>

List of all members.

Public Member Functions

 NetworkStream ()
 NetworkStream (socket_t s)
 ~NetworkStream ()
std::string peer ()
bool connect (const std::string &name, unsigned int port)
bool connect (const char *name, unsigned int port)
void close ()
int write (const void *buffer, size_t length)
int read (void *buffer, size_t length)
int blockingRead (void *buffer, size_t length)
int blockingWrite (const void *buffer, unsigned int length)
bool alive ()

Private Member Functions

sockaddr_in _getSockaddr (const char *name, unsigned int port)

Private Attributes

socket_t _socket


Constructor & Destructor Documentation

indri::net::NetworkStream::NetworkStream  )  [inline]
 

indri::net::NetworkStream::NetworkStream socket_t  s  )  [inline]
 

indri::net::NetworkStream::~NetworkStream  )  [inline]
 


Member Function Documentation

struct sockaddr_in indri::net::NetworkStream::_getSockaddr const char *  name,
unsigned int  port
[inline, private]
 

bool indri::net::NetworkStream::alive  )  [inline]
 

int indri::net::NetworkStream::blockingRead void *  buffer,
size_t  length
[inline]
 

int indri::net::NetworkStream::blockingWrite const void *  buffer,
unsigned int  length
[inline]
 

void indri::net::NetworkStream::close  )  [inline]
 

bool indri::net::NetworkStream::connect const char *  name,
unsigned int  port
[inline]
 

bool indri::net::NetworkStream::connect const std::string &  name,
unsigned int  port
[inline]
 

std::string indri::net::NetworkStream::peer  )  [inline]
 

int indri::net::NetworkStream::read void *  buffer,
size_t  length
[inline]
 

int indri::net::NetworkStream::write const void *  buffer,
size_t  length
[inline]
 


Member Data Documentation

socket_t indri::net::NetworkStream::_socket [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:03 2010 for Lemur by doxygen 1.3.4