summaryrefslogtreecommitdiff
path: root/ecp/test/vc_client.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-09-04 02:51:10 +0200
committerUros Majstorovic <majstor@majstor.org>2021-09-04 02:51:10 +0200
commit498fb8b691aaa62ec12b7326361140321c1a8220 (patch)
treef6f5a21f0a04cffef8977c822785ac5da687d470 /ecp/test/vc_client.c
parentb98a39ddae6a9cd002465bd46c19a1cb9285174b (diff)
ecp fixed frag problems
Diffstat (limited to 'ecp/test/vc_client.c')
-rw-r--r--ecp/test/vc_client.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ecp/test/vc_client.c b/ecp/test/vc_client.c
index e654e76..d669697 100644
--- a/ecp/test/vc_client.c
+++ b/ecp/test/vc_client.c
@@ -22,13 +22,13 @@ ECPNode vconn_node[20];
ssize_t handle_open(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s, ECP2Buffer *b) {
uint32_t seq = 0;
-
+
ecp_conn_handle_open(conn, sq, t, p, s, b);
if (s < 0) {
printf("OPEN ERR:%ld\n", s);
return s;
}
-
+
printf("OPEN!\n");
char *msg = "PERA JE CAR!";
@@ -52,23 +52,23 @@ static void usage(char *arg) {
int main(int argc, char *argv[]) {
int rv, i;
-
+
if ((argc < 3) || (argc > 22)) usage(argv[0]);
-
+
rv = ecp_init(&ctx);
printf("ecp_init RV:%d\n", rv);
-
+
rv = ecp_conn_handler_init(&handler);
handler.msg[ECP_MTYPE_OPEN] = handle_open;
handler.msg[MTYPE_MSG] = handle_msg;
ctx.handler[CTYPE_TEST] = &handler;
-
+
rv = ecp_sock_create(&sock, &ctx, NULL);
printf("ecp_sock_create RV:%d\n", rv);
rv = ecp_sock_open(&sock, NULL);
printf("ecp_sock_open RV:%d\n", rv);
-
+
rv = ecp_start_receiver(&sock);
printf("ecp_start_receiver RV:%d\n", rv);