c-libp2p/test/test_conn.h

13 lines
267 B
C
Raw Normal View History

2017-02-13 18:26:41 +00:00
#include <stdlib.h>
#include "libp2p/conn/dialer.h"
int test_dialer_new() {
struct PrivateKey* private_key = NULL;
struct Dialer* dialer = libp2p_conn_dialer_new("ABC", private_key);
if (dialer == NULL)
return 0;
libp2p_conn_dialer_free(dialer);
return 1;
}