|
The Micro C++ Library
|
Inherits micxx::HTTPReceiver.
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) |
| 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;
}