Files
@ 6245840e7c6b
Branch filter:
Location: libtransport.git/backends/libcommuni/main.cpp - annotation
6245840e7c6b
1.1 KiB
text/x-c++hdr
Show more info about boost filesystem error
d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 a06a47ed110e 1ebe5535c4f3 d2502858d6c0 bc3971f7d258 d2502858d6c0 bc3971f7d258 5424e5c686e6 d2502858d6c0 d2502858d6c0 d2502858d6c0 5424e5c686e6 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 060510d6958e 060510d6958e 060510d6958e 060510d6958e d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 060510d6958e 5424e5c686e6 d2502858d6c0 5424e5c686e6 d2502858d6c0 05e06dd845ae d2502858d6c0 d2502858d6c0 | /*
* Copyright (C) 2008-2009 J-P Nurmi jpnurmi@gmail.com
*
* This example is free, and not covered by LGPL license. There is no
* restriction applied to their modification, redistribution, using and so on.
* You can study them, modify them, use them in your own program - either
* completely or partially. By using it you may give me some credits in your
* program, but you don't have to.
*/
#include "transport/config.h"
#include "transport/networkplugin.h"
#include "transport/logging.h"
#include "session.h"
#include <QtCore>
#include <QtNetwork>
#include "Swiften/EventLoop/Qt/QtEventLoop.h"
#include "ircnetworkplugin.h"
using namespace boost::program_options;
using namespace Transport;
NetworkPlugin * np = NULL;
int main (int argc, char* argv[]) {
std::string host;
int port;
std::string error;
Config *cfg = Config::createFromArgs(argc, argv, error, host, port);
if (cfg == NULL) {
std::cerr << error;
return 1;
}
QCoreApplication app(argc, argv);
Logging::initBackendLogging(cfg);
Swift::QtEventLoop eventLoop;
np = new IRCNetworkPlugin(cfg, &eventLoop, host, port);
return app.exec();
}
|