diff options
Diffstat (limited to 'code/test/vid/server.c')
-rw-r--r-- | code/test/vid/server.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/code/test/vid/server.c b/code/test/vid/server.c index 08653f1..48f6c51 100644 --- a/code/test/vid/server.c +++ b/code/test/vid/server.c @@ -23,6 +23,7 @@ static ssize_t handle_open(ECPConnection *c, ecp_seq_t sq, unsigned char t, unsi conn = c; is_open = 1; + fprintf(stderr, "IS OPEN!\n"); return rv; } @@ -39,7 +40,7 @@ int init_server(char *address, char *key) { int rv; rv = ecp_init(&ctx_s); - printf("ecp_init RV:%d\n", rv); + fprintf(stderr, "ecp_init RV:%d\n", rv); if (!rv) rv = ecp_conn_handler_init(&handler_s); if (!rv) { @@ -48,16 +49,16 @@ int init_server(char *address, char *key) { } if (!rv) rv = ecp_util_key_load(&ctx_s, &key_perma_s, key); - printf("ecp_util_key_load RV:%d\n", rv); + fprintf(stderr, "ecp_util_key_load RV:%d\n", rv); if (!rv) rv = ecp_sock_create(&sock_s, &ctx_s, &key_perma_s); - printf("ecp_sock_create RV:%d\n", rv); + fprintf(stderr, "ecp_sock_create RV:%d\n", rv); if (!rv) rv = ecp_sock_open(&sock_s, address); - printf("ecp_sock_open RV:%d\n", rv); + fprintf(stderr, "ecp_sock_open RV:%d\n", rv); if (!rv) rv = ecp_start_receiver(&sock_s); - printf("ecp_start_receiver RV:%d\n", rv); + fprintf(stderr, "ecp_start_receiver RV:%d\n", rv); return rv; } |