c-libp2p/test/test_net.h

11 lines
195 B
C
Raw Normal View History

2017-11-20 00:29:40 +00:00
#include <stdio.h>
#include "libp2p/net/server.h"
int test_net_server_startup_shutdown() {
libp2p_net_server_start("127.0.0.1", 1234, NULL);
sleep(5);
libp2p_net_server_stop();
return 1;
}