~singpolyma/biboumi

ref: ccebe901d7d76dfddc082d994efa54ef2aefee57 biboumi/src/main.cpp -rw-r--r-- 330 bytes
ccebe901 — Florent Le Coz Check UTF-8 encoding, and convert strings to UTF-8 10 years ago
                                                                                
64c1b28c Florent Le Coz
ccebe901 Florent Le Coz
bf7b05ef Florent Le Coz
64c1b28c Florent Le Coz
ccebe901 Florent Le Coz
64c1b28c Florent Le Coz
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;
}