summaryrefslogtreecommitdiff
path: root/src/server.cc
diff options
context:
space:
mode:
authordeva <deva>2005-06-14 18:58:35 +0000
committerdeva <deva>2005-06-14 18:58:35 +0000
commit35f79080273e736107e70c23675c89220bc2feda (patch)
tree08b35954af65dd1568761d913b63764972f9592b /src/server.cc
parent2348bf307ca32bb65b54017ee1906fda48b55087 (diff)
*** empty log message ***R0_2_4
Diffstat (limited to 'src/server.cc')
-rw-r--r--src/server.cc17
1 files changed, 10 insertions, 7 deletions
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 <errno.h>
+// For inet_ntoa
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
#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");
}