Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsLP Class Reference

#include <dsLP.h>

Inheritance diagram for dsLP:

dsSocketBase List of all members.

Public Methods

 dsLP (char *dev, const int boudrate=0, const int flags=0)
virtual ~dsLP ()
virtual void Connect (const char *dev, const int baudrate=0, const int flags=0)
virtual void Close ()
virtual size_t __read (char *buf, size_t bytes)
virtual size_t __write (char *ptr, size_t bytes)
int fd () const
size_t Read (char *buffer, size_t bytes, int sec=10, int usec=0)
size_t Read (std::ostream &os, int sec=10, int usec=0)
size_t Write (const char *buffer, size_t bytes, int sec=10, int usec=0)
size_t Write (std::istream &is, int sec=10, int usec=0)
size_t Write (const char *str, int sec=10, int usec=0)
size_t Printf (const char *format,...)
size_t ReadLine (std::ostream &os, int sec=10)
size_t ReadLine (char *buf, size_t size, int sec=10)
size_t WriteLine (std::istream &is, int sec=10)
size_t WriteLine (const char *str, int sec=10)

Protected Methods

virtual size_t __write (const char *ptr, size_t bytes)=0

Protected Attributes

int _sock

Constructor & Destructor Documentation

dsLP::dsLP char *    dev,
const int    boudrate = 0,
const int    flags = 0
 

virtual dsLP::~dsLP   [virtual]
 


Member Function Documentation

size_t dsLP::__read char *    buf,
size_t    bytes
[virtual]
 

Implements dsSocketBase.

virtual size_t dsSocketBase::__write const char *    ptr,
size_t    bytes
[protected, pure virtual, inherited]
 

Implemented in dsSocket, and dsSSLSocket.

size_t dsLP::__write char *    ptr,
size_t    bytes
[virtual]
 

void dsLP::Close   [virtual]
 

Implements dsSocketBase.

void dsLP::Connect const char *    dev,
const int    baudrate = 0,
const int    flags = 0
[virtual]
 

Implements dsSocketBase.

int dsSocketBase::fd   const [inline, inherited]
 

size_t dsSocketBase::Printf const char *    format,
...   
[inherited]
 

size_t dsSocketBase::Read std::ostream &    os,
int    sec = 10,
int    usec = 0
[inherited]
 

size_t dsSocketBase::Read char *    buffer,
size_t    bytes,
int    sec = 10,
int    usec = 0
[inherited]
 

Read/Write data from network

The main difference from raw read/write, that socket covered by select and as result, these functions doesn't block for more than timeout.

size_t dsSocketBase::ReadLine char *    buf,
size_t    size,
int    sec = 10
[inherited]
 

size_t dsSocketBase::ReadLine std::ostream &    os,
int    sec = 10
[inherited]
 

ReadLine

Parameters:
os stream to store data
sec maximal wait time

size_t dsSocketBase::Write const char *    str,
int    sec = 10,
int    usec = 0
[inline, inherited]
 

size_t dsSocketBase::Write std::istream &    is,
int    sec = 10,
int    usec = 0
[inherited]
 

size_t dsSocketBase::Write const char *    buffer,
size_t    bytes,
int    sec = 10,
int    usec = 0
[inherited]
 

size_t dsSocketBase::WriteLine const char *    str,
int    sec = 10
[inherited]
 

size_t dsSocketBase::WriteLine std::istream &    is,
int    sec = 10
[inherited]
 


Member Data Documentation

int dsSocketBase::_sock [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:27:00 2005 for libdms4 by doxygen1.3-rc2