diff options
Diffstat (limited to 'ecp/test/vc_client_t.c')
-rw-r--r-- | ecp/test/vc_client_t.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ecp/test/vc_client_t.c b/ecp/test/vc_client_t.c index b021c2d..968d643 100644 --- a/ecp/test/vc_client_t.c +++ b/ecp/test/vc_client_t.c @@ -15,7 +15,7 @@ ECPConnHandler handler; ECPNode node; ECPConnection conn; -ECPVConnection vconn[20]; +ECPVConnOut vconn[20]; ECPNode vconn_node[20]; #define CTYPE_TEST 0 @@ -80,23 +80,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_init(&sock, &ctx, NULL); + printf("ecp_sock_init 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); @@ -108,8 +108,8 @@ int main(int argc, char *argv[]) { printf("ecp_util_node_load RV:%d\n", rv); } - rv = ecp_conn_create(&conn, &sock, CTYPE_TEST); - printf("ecp_conn_create RV:%d\n", rv); + rv = ecp_conn_init(&conn, &sock, CTYPE_TEST); + printf("ecp_conn_init RV:%d\n", rv); rv = ecp_vconn_open(&conn, &node, vconn, vconn_node, argc-2); printf("ecp_vconn_open RV:%d\n", rv); |