summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-01-19 19:10:45 +0100
committerUros Majstorovic <majstor@majstor.org>2018-01-19 19:10:45 +0100
commitaff8237b0ca0de231f70728767a8a786c8e20cf6 (patch)
treef9ef563e611db8251c45e095be465b3223ca5bb1
parent544f43a7e06c9b0c63df8d3994318ea72107f64e (diff)
pine64 vid test update
-rw-r--r--code/test/vid/server.c5
-rw-r--r--code/test/vid/server.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/code/test/vid/server.c b/code/test/vid/server.c
index 8753a7d..2068747 100644
--- a/code/test/vid/server.c
+++ b/code/test/vid/server.c
@@ -4,7 +4,6 @@
#include <stdlib.h>
#include "server.h"
-#include "util.h"
static ECPContext ctx_s;
static ECPSocket sock_s;
@@ -24,7 +23,7 @@ static ssize_t handle_open(ECPConnection *c, ecp_seq_t sq, unsigned char t, unsi
ssize_t rv = ecp_conn_handle_open(c, sq, t, m, sz, b);
if (rv < 0) return rv;
- conn = c;
+ conn_in = c;
is_open = 1;
fprintf(stderr, "IS OPEN!\n");
@@ -51,7 +50,7 @@ int init_server(char *address, char *my_key, char *vcs_key) {
ctx_s.handler[CTYPE_TEST] = &handler_s;
}
- if (!rv) rv = ecp_util_key_load(&ctx_s, &key_perma_s, key);
+ if (!rv) rv = ecp_util_key_load(&ctx_s, &key_perma_s, my_key);
fprintf(stderr, "ecp_util_key_load RV:%d\n", rv);
if (!rv) rv = ecp_sock_create(&sock_s, &ctx_s, &key_perma_s);
diff --git a/code/test/vid/server.h b/code/test/vid/server.h
index a4024fd..2158b38 100644
--- a/code/test/vid/server.h
+++ b/code/test/vid/server.h
@@ -1,4 +1,6 @@
#include "core.h"
+#include "vconn/vconn.h"
+#include "util.h"
ssize_t send_frame(unsigned char *buffer, size_t size, ecp_pts_t pts);
int conn_is_open(void);