aboutsummaryrefslogtreecommitdiff
path: root/src/Sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Sockets.c')
-rw-r--r--src/Sockets.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/Sockets.c b/src/Sockets.c
index 0eebf89..4cf670c 100644
--- a/src/Sockets.c
+++ b/src/Sockets.c
@@ -11,6 +11,7 @@
@@*/
#include "cctk.h"
+#include "cctk_Parameters.h"
#include "util_Network.h"
#include <stdio.h>
@@ -240,6 +241,8 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec)
httpSocket *this;
httpSocket *next;
+ DECLARE_CCTK_PARAMETERS
+
if(sec >=0)
{
@@ -278,11 +281,13 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec)
}
else
{
- fprintf (stderr,
- "Server: connect from host %s, port %hd.\n",
- inet_ntoa (clientname.sin_addr),
- ntohs (clientname.sin_port));
-
+ if (verbose)
+ {
+ CCTK_VInfo (CCTK_THORNSTRING,
+ "Server: connect from host %s, port %hd",
+ inet_ntoa (clientname.sin_addr),
+ ntohs (clientname.sin_port));
+ }
SocketCreate(new);
}
}