From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec/include/net_peer.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/parsec/include/net_peer.h (limited to 'src/parsec/include/net_peer.h') diff --git a/src/parsec/include/net_peer.h b/src/parsec/include/net_peer.h new file mode 100644 index 0000000..1a2aa7c --- /dev/null +++ b/src/parsec/include/net_peer.h @@ -0,0 +1,40 @@ +/* + * PARSEC HEADER: net_peer.h + */ + +#ifndef _NET_PEER_H_ +#define _NET_PEER_H_ + + +// net_peer.c implements the following functions +// --------------------------------------------- +// int NETs_Connect(); +// int NETs_Disconnect(); +// int NETs_Join(); +// int NETs_Unjoin( byte flag ); +// int NETs_UpdateName(); +// void NETs_MaintainNet(); + + +#ifdef DBIND_PROTOCOL + +#undef NETs_Connect +#undef NETs_Disconnect +#undef NETs_Join +#undef NETs_Unjoin +#undef NETs_UpdateName +#undef NETs_MaintainNet + +#define NETs_Connect NETs_PEERTOPEER_Connect +#define NETs_Disconnect NETs_PEERTOPEER_Disconnect +#define NETs_Join NETs_PEERTOPEER_Join +#define NETs_Unjoin NETs_PEERTOPEER_Unjoin +#define NETs_UpdateName NETs_PEERTOPEER_UpdateName +#define NETs_MaintainNet NETs_PEERTOPEER_MaintainNet + +#endif + + +#endif // _NET_PEER_H_ + + -- cgit v1.2.3