ddat interop with dat js cable interop with cabal js ddat's frontend = dat-thang cable fe = cable-thang dillo support based on cel's dillo-dat bootstrap node xplatform support Signed-off-by: divo <418@cryspace.space>
23 lines
664 B
C
23 lines
664 B
C
#ifndef DAT_NET_COMPAT_H
|
|
#define DAT_NET_COMPAT_H
|
|
|
|
/* Source-compatibility names for Dat/Cable code written before libcess was
|
|
* extracted. New integrations should include <cess_net.h> directly. */
|
|
#include <libcess/cess_net.h>
|
|
#include "dat_socket.h"
|
|
|
|
typedef cess_peer_t dat_peer_t;
|
|
typedef cessnet_t datnet_t;
|
|
|
|
#define DATNET_PORT CESSNET_PORT
|
|
#define DATNET_MAX_PACKET CESSNET_MAX_PACKET
|
|
#define DATNET_TOPIC_BYTES CESSNET_TOPIC_BYTES
|
|
#define DATNET_PEERID_BYTES CESSNET_PEERID_BYTES
|
|
#define datnet_init cessnet_init
|
|
#define datnet_bind cessnet_bind
|
|
#define datnet_poll cessnet_poll
|
|
#define datnet_send cessnet_send
|
|
#define datnet_close cessnet_close
|
|
|
|
#endif
|