|
Public Methods |
| dsSocketBase () |
virtual void | Connect (const char *host, const int port, const int proto)=0 |
virtual void | Close ()=0 |
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 | __read (char *buf, size_t bytes)=0 |
virtual size_t | __write (const char *ptr, size_t bytes)=0 |
Protected Attributes |
int | _sock |