uHTTP for C++
uHTTP::SocketInputStream Class Reference

#include <SocketInputStream.h>

Inheritance diagram for uHTTP::SocketInputStream:
uHTTP::InputStream

Public Member Functions

 SocketInputStream (Socket *sock)
 
virtual ~SocketInputStream ()
 
ssize_t read (std::string &b, size_t len)
 
ssize_t read (char *b, size_t len)
 
void unread (std::string &b, size_t off, size_t len)
 
long skip (long n)
 
void close ()
 
- Public Member Functions inherited from uHTTP::InputStream
 InputStream ()
 
virtual ~InputStream ()
 
ssize_t read (unsigned char *b, size_t len)
 
void unread (std::string &b, size_t len)
 
void unread (std::string &b)
 
void unread (char c)
 

Private Attributes

Socketsock
 
std::string unputBuf
 
char * inBuf
 

Constructor & Destructor Documentation

◆ SocketInputStream()

uHTTP::SocketInputStream::SocketInputStream ( Socket * sock)

◆ ~SocketInputStream()

virtual uHTTP::SocketInputStream::~SocketInputStream ( )
virtual

Member Function Documentation

◆ close()

void uHTTP::SocketInputStream::close ( )
virtual

Implements uHTTP::InputStream.

◆ read() [1/2]

ssize_t uHTTP::SocketInputStream::read ( char * b,
size_t len )
virtual

Implements uHTTP::InputStream.

◆ read() [2/2]

ssize_t uHTTP::SocketInputStream::read ( std::string & b,
size_t len )
virtual

Implements uHTTP::InputStream.

◆ skip()

long uHTTP::SocketInputStream::skip ( long n)
virtual

Implements uHTTP::InputStream.

◆ unread()

void uHTTP::SocketInputStream::unread ( std::string & b,
size_t off,
size_t len )
virtual

Implements uHTTP::InputStream.

Field Documentation

◆ inBuf

char* uHTTP::SocketInputStream::inBuf
private

◆ sock

Socket* uHTTP::SocketInputStream::sock
private

◆ unputBuf

std::string uHTTP::SocketInputStream::unputBuf
private

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