aboutsummaryrefslogtreecommitdiff
path: root/src/espik_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/espik_net.c')
-rw-r--r--src/espik_net.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/espik_net.c b/src/espik_net.c
index 2708542..14ef5fe 100644
--- a/src/espik_net.c
+++ b/src/espik_net.c
@@ -8,6 +8,7 @@
#include "espik_common_handler.h"
#include "espik_error.h"
#include "espik.h"
+#include "espik_global.h"
#include <unistd.h>
#include <stdlib.h>
@@ -34,12 +35,15 @@ void espik_con_init (t_info serv_info)
void espik_con_shutdown ()
{
-
+#ifdef _D_
printf ("> espik_con_shutdown\n");
+#endif
ecore_con_server_del (con_sock);
ecore_con_shutdown ();
+#ifdef _D_
printf ("< espik_con_shutdown\n");
+#endif
/* ecore_main_loop_quit (); */
}
@@ -54,6 +58,7 @@ void espik_raw_send (char *msg)
snprintf (out, len, "%s\r\n", msg);
+#ifdef _D_
printf ("espik_raw_send:\nmsg: %s\nout: %s\n", msg, out);
/*
printf ("out[len-3]: 0x%X\n", out[len - 3]);
@@ -63,6 +68,7 @@ void espik_raw_send (char *msg)
printf ("ecore_con_server_send: %d\n", ecore_con_server_send (con_sock,
out, strlen (out)));
+#endif
free (out);
}