The Micro C++ Library
MyHTTPReceiver Class Reference

Inherits micxx::HTTPReceiver.

List of all members.

Public Member Functions

void notifyConnected (const micxx::InetAddress &address)
void notifyClosed (const micxx::InetAddress &address)
void notifyHeader (const micxx::HTTPConnection::NameValueMap &header)
void notifyData (const std::string &data)

Member Function Documentation

void MyHTTPReceiver::notifyClosed ( const micxx::InetAddress address) [inline, virtual]

Implements micxx::HTTPReceiver.

    {
        std::cout << "CLOSED from " << address << std::endl;
    }
void MyHTTPReceiver::notifyConnected ( const micxx::InetAddress address) [inline, virtual]

Implements micxx::HTTPReceiver.

    {
        std::cout << "CONNECTED to " << address << std::endl;
    }
void MyHTTPReceiver::notifyData ( const std::string &  data) [inline, virtual]

Implements micxx::HTTPReceiver.

    {
        std::cout << data << std::endl;
    }
void MyHTTPReceiver::notifyHeader ( const micxx::HTTPConnection::NameValueMap header) [inline, virtual]

Implements micxx::HTTPReceiver.

    {
        for (micxx::HTTPConnection::NameValueMap::const_iterator i = header.begin(); i != header.end(); ++i)
        {
            std::cout << "HEADER " << i->first << ": " << i->second << std::endl;
        }
        std::cout << std::endl;
    }

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