From bad686c6eba0d6afc39b8fcdd78f5069ec4d2cb8 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 25 Jul 2006 16:35:32 +0000 Subject: Moved the ETC and PIXMAPS symbols to config.h. Moved the ETC and PIXMAPS symbols to config.h. Moved the ETC and PIXMAPS symbols to config.h. --- server/server.cc | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'server/server.cc') diff --git a/server/server.cc b/server/server.cc index 9af22d9..27e5eef 100644 --- a/server/server.cc +++ b/server/server.cc @@ -25,7 +25,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "server.h" -#include "miav_server.h" + +#include "network.h" #include #include @@ -55,6 +56,28 @@ #include "dv.h" +void newConnection(Socket *socket) +{ + Network network(socket); + + MIaV::info->info("CONNECTION OPENED"); + MIaV::info->info("New connection (%s)", inet_ntoa(socket->socketaddr.sin_addr)); + + Frame *frame; + while((frame = network.recvFrame())) { + + sleep(1); + + if(frame->vframe) delete frame->vframe; + if(frame->aframe) delete frame->aframe; + delete frame; + } + + MIaV::info->info("CONNECTION CLOSED"); +} + + +/* void newConnection(Socket *socket) { char cpr[256]; @@ -135,3 +158,4 @@ void newConnection(Socket *socket) MIaV::info->info("CONNECTION CLOSED"); } +*/ -- cgit v1.2.3