c-libp2p/conn/connection.c

16 lines
374 B
C
Raw Normal View History

2017-02-13 18:26:41 +00:00
#include <stdlib.h>
#include "libp2p/conn/connection.h"
struct Connection* libp2p_conn_connection_open(struct TransportDialer* transport_dialer, struct maddr* multiaddress) {
struct Connection* out = NULL;
if (transport_dialer != NULL) {
out = (struct Connection*)malloc(sizeof(struct Connection));
if (out != NULL) {
//TODO implement this
}
}
return out;
}