summaryrefslogtreecommitdiff
path: root/code/test/vid/server.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2017-09-09 15:49:35 +0000
committerUros Majstorovic <majstor@majstor.org>2017-09-09 15:49:35 +0000
commit7d3e6b74812527f69aabf9c1bbb0eb37051f94da (patch)
tree5f68a5daf5b6da0d14db49a9fe68482ee0972786 /code/test/vid/server.c
parentd40fd9b1adab64182ce8af0b8e19cfc8a93171d7 (diff)
video test prints to stderr
Diffstat (limited to 'code/test/vid/server.c')
-rw-r--r--code/test/vid/server.c11
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;
}