syndilights/frameserver/test_server.cpp

32 lines
488 B
C++
Raw Normal View History

#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);
server.launch_threads();
Main->run();
return 0;
}