diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-11-29 11:41:38 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-11-29 11:41:38 +0100 |
commit | 89f78318058590a2ccda22ed447a9d134857ff14 (patch) | |
tree | 1c1bb040a7f55326c8d613e46999e981cc6dc177 /libglouglou/tests/sendrecv.c | |
parent | add very basic glougloud (diff) | |
download | glouglou-89f78318058590a2ccda22ed447a9d134857ff14.tar.xz glouglou-89f78318058590a2ccda22ed447a9d134857ff14.zip |
auto calculate the packet size in gg_*_send()
Diffstat (limited to 'libglouglou/tests/sendrecv.c')
-rw-r--r-- | libglouglou/tests/sendrecv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libglouglou/tests/sendrecv.c b/libglouglou/tests/sendrecv.c index ea8fa0e..fbf4aed 100644 --- a/libglouglou/tests/sendrecv.c +++ b/libglouglou/tests/sendrecv.c @@ -46,10 +46,10 @@ main(void) pkt.ver = PACKET_VERSION; pkt.type = PACKET_NEWCONN; - gg_server_send(srv, &pkt, PACKET_NEWCONN_SIZE, NULL); + gg_server_send(srv, &pkt, NULL); event_base_loop(ev_base, EVLOOP_ONCE); - gg_client_send(cli, &pkt, PACKET_NEWCONN_SIZE); + gg_client_send(cli, &pkt); event_base_loop(ev_base, EVLOOP_ONCE); if (srv_recv_ok == 0) |