blob: b7fa01e8a62399256bf44ce96859159305584596 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <network/poller.hpp>
#include <xmpp/xmpp_component.hpp>
#include <memory>
int main()
{
Poller p;
std::shared_ptr<XmppComponent> xmpp_component =
std::make_shared<XmppComponent>("irc.localhost", "secret");
p.add_socket_handler(xmpp_component);
xmpp_component->start();
while (p.poll())
;
return 0;
}
|