From 35f79080273e736107e70c23675c89220bc2feda Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 14 Jun 2005 18:58:35 +0000 Subject: *** empty log message *** --- src/server.cc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/server.cc') diff --git a/src/server.cc b/src/server.cc index 5e3126b..fad79ae 100644 --- a/src/server.cc +++ b/src/server.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.23 2005/06/14 18:58:35 deva + * *** empty log message *** + * * Revision 1.22 2005/06/14 12:29:40 deva * Incorporated the use of the Info object everywhere... also using the log functionality. * @@ -41,14 +44,12 @@ * *** empty log message *** * * Revision 1.19 2005/05/22 16:34:44 deva - * * Fix: Connection is now taken down when taking a sanpshot without recording. * * Revision 1.18 2005/05/22 15:49:22 deva * Added multithreaded encoding support. * * Revision 1.17 2005/05/17 19:16:26 deva - * * Made new mpeg writer work, with proper file permissions. * * Revision 1.16 2005/05/17 15:12:51 deva @@ -58,11 +59,9 @@ * Added code, preparing threaded encoding. * * Revision 1.14 2005/05/16 16:00:57 deva - * * Lots of stuff! * * Revision 1.13 2005/05/09 16:40:20 deva - * * Added optimize yuv conversion code * * Revision 1.12 2005/05/07 10:56:18 deva @@ -98,6 +97,10 @@ // For errno #include +// For inet_ntoa +#include +#include +#include #include "miav_config.h" @@ -317,7 +320,7 @@ void newConnection(Socket *socket, Info *info) frame = new Frame(NULL, DVPACKAGE_SIZE); - info->log("New connection"); + info->info("New connection (%s)", inet_ntoa(socket->socketaddr.sin_addr)); Network network = Network(socket, info); while(int ret = network.recvPackage(&h, frame->data, frame->size)) { @@ -372,10 +375,10 @@ void newConnection(Socket *socket, Info *info) // TODO: Use save state - info->log("Closing connection..."); + info->info("Closing connection..."); if(enc) delete enc; - info->log("Connection closed"); + info->info("Connection closed"); } -- cgit v1.2.3