2010-11-12 16:16:22 +01:00
|
|
|
#include <glibmm.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "defines.h"
|
|
|
|
|
|
|
|
#include "Server.h"
|
|
|
|
|
|
|
|
#include "Buffer.h"
|
|
|
|
#include "Buffers.h"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
srand( time(NULL) );
|
|
|
|
Glib::thread_init();
|
|
|
|
|
|
|
|
// our main loop with support for signals and all that jazz
|
|
|
|
Glib::RefPtr<Glib::MainLoop> Main = Glib::MainLoop::create();
|
|
|
|
|
2010-11-12 21:37:12 +01:00
|
|
|
Server server(4321);
|
2010-11-12 16:16:22 +01:00
|
|
|
server.launch_threads();
|
|
|
|
|
|
|
|
Main->run();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|