diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-11-02 03:23:17 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-11-02 03:23:17 +0100 |
commit | 64c1b28ce211f899ca0fbcae5049532e129f19c1 (patch) | |
tree | 04087a491e15d5d76c5381e56397adcb409bfe6e | |
parent | 7869ef2ace9a487abb0b489ca432b0a8878c5083 (diff) | |
download | biboumi-64c1b28ce211f899ca0fbcae5049532e129f19c1.tar.gz biboumi-64c1b28ce211f899ca0fbcae5049532e129f19c1.tar.bz2 biboumi-64c1b28ce211f899ca0fbcae5049532e129f19c1.tar.xz biboumi-64c1b28ce211f899ca0fbcae5049532e129f19c1.zip |
Add some dummy main
-rw-r--r-- | src/main.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..aeeda34 --- /dev/null +++ b/src/main.cpp @@ -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; +} |