~singpolyma/biboumi

64c1b28ce211f899ca0fbcae5049532e129f19c1 — Florent Le Coz 10 years ago 7869ef2
Add some dummy main
1 files changed, 20 insertions(+), 0 deletions(-)

A src/main.cpp
A src/main.cpp => src/main.cpp +20 -0
@@ 0,0 1,20 @@
#include <libirc/irc_client.hpp>
#include <network/poller.hpp>

int main()
{
  Poller p;
  // Now I'm the bridge, creating an ircclient because needed.
  std::shared_ptr<IrcClient> c = std::make_shared<IrcClient>();
  p.add_socket_handler(c);
  std::shared_ptr<IrcClient> d = std::make_shared<IrcClient>();
  p.add_socket_handler(d);
  std::shared_ptr<IrcClient> e = std::make_shared<IrcClient>();
  p.add_socket_handler(e);
  c->connect("localhost", "7877");
  d->connect("localhost", "7878");
  e->connect("localhost", "7879");
  while (true)
    p.poll();
  return 0;
}