2015-07-22 06:16:29 -07:00
|
|
|
/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */
|
2003-11-01 05:35:29 +00:00
|
|
|
/*
|
2022-09-03 18:47:04 -07:00
|
|
|
* Copyright 2001 - 2022 by Eric House (xwords@eehouse.org). All rights
|
2009-02-01 15:50:58 +00:00
|
|
|
* reserved.
|
2003-11-01 05:35:29 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _COMMS_H_
|
|
|
|
#define _COMMS_H_
|
|
|
|
|
|
|
|
#include "comtypes.h"
|
2020-05-20 13:58:53 -07:00
|
|
|
#include "commstyp.h"
|
2003-11-01 05:35:29 +00:00
|
|
|
#include "mempool.h"
|
2005-03-19 21:46:51 +00:00
|
|
|
#include "xwrelay.h"
|
2008-01-07 01:10:43 +00:00
|
|
|
#include "server.h"
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2005-01-31 03:31:50 +00:00
|
|
|
EXTERN_C_START
|
|
|
|
|
2003-11-01 05:35:29 +00:00
|
|
|
#define CHANNEL_NONE ((XP_PlayerAddr)0)
|
|
|
|
#define CONN_ID_NONE 0L
|
|
|
|
|
2005-10-02 15:39:38 +00:00
|
|
|
typedef XP_U32 MsgID; /* this is too big!!! PENDING */
|
2017-11-10 21:34:02 -08:00
|
|
|
typedef XP_U8 XWHostID;
|
2003-11-01 05:35:29 +00:00
|
|
|
|
|
|
|
typedef enum {
|
2007-12-09 01:59:15 +00:00
|
|
|
COMMS_CONN_NONE /* I want errors on uninited case */
|
2020-09-10 15:11:22 -07:00
|
|
|
,COMMS_CONN_IR /* 1 */
|
|
|
|
,COMMS_CONN_IP_DIRECT /* 2 */
|
|
|
|
,COMMS_CONN_RELAY /* 3 */
|
|
|
|
,COMMS_CONN_BT /* 4 */
|
|
|
|
,COMMS_CONN_SMS /* 5 */
|
2016-11-14 08:06:53 -08:00
|
|
|
,COMMS_CONN_P2P /* a.k.a. Wifi direct */
|
2020-09-10 15:11:22 -07:00
|
|
|
,COMMS_CONN_NFC /* 7 */
|
|
|
|
,COMMS_CONN_MQTT /* 8 */
|
2009-02-28 19:27:45 +00:00
|
|
|
|
|
|
|
,COMMS_CONN_NTYPES
|
2003-11-01 05:35:29 +00:00
|
|
|
} CommsConnType;
|
|
|
|
|
2014-10-15 07:26:18 -07:00
|
|
|
typedef XP_U8 CommsConnTypes;
|
|
|
|
|
2009-09-12 21:39:13 +00:00
|
|
|
typedef enum {
|
|
|
|
COMMS_RELAYSTATE_UNCONNECTED
|
2009-12-04 08:14:03 +00:00
|
|
|
, COMMS_RELAYSTATE_DENIED /* terminal; new game or reset required to
|
|
|
|
fix */
|
2009-09-12 21:39:13 +00:00
|
|
|
, COMMS_RELAYSTATE_CONNECT_PENDING
|
|
|
|
, COMMS_RELAYSTATE_CONNECTED
|
2009-11-08 21:30:13 +00:00
|
|
|
, COMMS_RELAYSTATE_RECONNECTED
|
2009-09-12 21:39:13 +00:00
|
|
|
, COMMS_RELAYSTATE_ALLCONNECTED
|
2017-11-10 21:34:02 -08:00
|
|
|
#ifdef RELAY_VIA_HTTP
|
|
|
|
, COMMS_RELAYSTATE_USING_HTTP /* connection state doesn't matter */
|
|
|
|
#endif
|
2009-09-12 21:39:13 +00:00
|
|
|
} CommsRelayState;
|
|
|
|
|
2012-02-27 20:30:48 -08:00
|
|
|
#ifdef XWFEATURE_BLUETOOTH
|
2019-03-08 21:32:52 -08:00
|
|
|
# define XW_BT_NAME "CrossWords"
|
2012-02-27 20:30:48 -08:00
|
|
|
#endif
|
2007-11-03 22:04:06 +00:00
|
|
|
|
2007-11-18 23:43:27 +00:00
|
|
|
#ifdef COMMS_HEARTBEAT
|
|
|
|
# define IF_CH(a) a,
|
|
|
|
#else
|
|
|
|
# define IF_CH(a)
|
|
|
|
#endif
|
|
|
|
|
2022-09-06 12:16:29 -07:00
|
|
|
#ifdef XWFEATURE_COMMS_INVITE
|
|
|
|
typedef XP_S16 (*TransportSendInvt)( XWEnv xwe, const NetLaunchInfo* nli,
|
2023-01-24 17:11:05 -08:00
|
|
|
XP_U32 createdStamp, const CommsAddrRec* addr,
|
|
|
|
CommsConnType conType, void* closure );
|
2022-09-06 12:16:29 -07:00
|
|
|
#endif
|
2023-03-17 19:21:57 -07:00
|
|
|
|
2023-03-18 15:31:20 -07:00
|
|
|
typedef XP_S16 (*TransportSendMsgs)( XWEnv xwe, const SendMsgsPacket* const msgs,
|
|
|
|
XP_U16 streamVersion, const CommsAddrRec* addr,
|
2023-03-17 19:21:57 -07:00
|
|
|
CommsConnType conType, XP_U32 gameID,
|
|
|
|
void* closure );
|
2022-09-06 12:16:29 -07:00
|
|
|
|
2009-09-12 21:39:13 +00:00
|
|
|
#ifdef COMMS_HEARTBEAT
|
2020-04-25 17:47:07 -07:00
|
|
|
typedef void (*TransportReset)( XWEnv xwe, void* closure );
|
2009-09-12 21:39:13 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef XWFEATURE_RELAY
|
2020-04-25 17:47:07 -07:00
|
|
|
typedef void (*RelayStatusProc)( XWEnv xwe, void* closure, CommsRelayState newState );
|
|
|
|
typedef void (*RelayConndProc)( XWEnv xwe, void* closure, XP_UCHAR* const room,
|
2011-05-19 05:51:00 -07:00
|
|
|
XP_Bool reconnect,
|
2010-10-29 06:31:33 -07:00
|
|
|
XP_U16 devOrder, /* 1 means created room, etc. */
|
2011-05-19 05:51:00 -07:00
|
|
|
XP_Bool allHere, XP_U16 nMissing );
|
2020-04-25 17:47:07 -07:00
|
|
|
typedef void (*RelayErrorProc)( XWEnv xwe, void* closure, XWREASON relayErr );
|
|
|
|
typedef XP_Bool (*RelayNoConnProc)( XWEnv xwe, const XP_U8* buf, XP_U16 len,
|
2015-09-30 06:50:04 -07:00
|
|
|
const XP_UCHAR* msgNo,
|
2011-08-10 18:28:34 -07:00
|
|
|
const XP_UCHAR* relayID, void* closure );
|
2017-11-10 21:34:02 -08:00
|
|
|
# ifdef RELAY_VIA_HTTP
|
2020-04-25 17:47:07 -07:00
|
|
|
typedef void (*RelayRequestJoinProc)( XWEnv xwe, void* closure, const XP_UCHAR* devID,
|
2017-11-10 21:34:02 -08:00
|
|
|
const XP_UCHAR* room, XP_U16 nPlayersHere,
|
|
|
|
XP_U16 nPlayersTotal, XP_U16 seed,
|
|
|
|
XP_U16 lang );
|
|
|
|
# endif
|
2009-09-12 21:39:13 +00:00
|
|
|
#endif
|
|
|
|
|
2023-11-06 11:20:00 -08:00
|
|
|
typedef void (*MsgCountChange)( XWEnv xwe, void* closure, XP_U16 msgCount,
|
|
|
|
XP_Bool quashed );
|
2020-08-25 14:47:56 -07:00
|
|
|
typedef void (*RoleChangeProc)( XWEnv xwe, void* closure, XP_Bool amNowGuest );
|
2019-12-10 14:42:54 -08:00
|
|
|
|
2011-08-16 19:36:23 -07:00
|
|
|
typedef enum {
|
|
|
|
COMMS_XPORT_FLAGS_NONE = 0
|
|
|
|
,COMMS_XPORT_FLAGS_HASNOCONN = 1
|
|
|
|
} CommsTransportFlags;
|
|
|
|
|
|
|
|
#ifdef COMMS_XPORT_FLAGSPROC
|
2020-04-25 17:47:07 -07:00
|
|
|
typedef XP_U32 (*FlagsProc)( XWEnv xwe, void* closure );
|
2011-08-16 19:36:23 -07:00
|
|
|
#endif
|
|
|
|
|
2009-09-12 21:39:13 +00:00
|
|
|
typedef struct _TransportProcs {
|
2011-08-16 19:36:23 -07:00
|
|
|
# ifdef COMMS_XPORT_FLAGSPROC
|
|
|
|
FlagsProc getFlags;
|
|
|
|
#else
|
|
|
|
XP_U32 flags;
|
|
|
|
#endif
|
2023-03-17 19:21:57 -07:00
|
|
|
TransportSendMsgs sendMsgs;
|
2022-09-06 12:16:29 -07:00
|
|
|
#ifdef XWFEATURE_COMMS_INVITE
|
|
|
|
TransportSendInvt sendInvt;
|
|
|
|
#endif
|
2021-03-19 18:51:34 -07:00
|
|
|
MsgCountChange countChanged;
|
2009-09-12 21:39:13 +00:00
|
|
|
#ifdef COMMS_HEARTBEAT
|
|
|
|
TransportReset reset;
|
|
|
|
#endif
|
|
|
|
#ifdef XWFEATURE_RELAY
|
|
|
|
RelayStatusProc rstatus;
|
2009-12-14 04:03:17 +00:00
|
|
|
RelayConndProc rconnd;
|
2009-12-04 08:14:03 +00:00
|
|
|
RelayErrorProc rerror;
|
2011-08-10 18:28:34 -07:00
|
|
|
RelayNoConnProc sendNoConn;
|
2017-11-10 21:34:02 -08:00
|
|
|
# ifdef RELAY_VIA_HTTP
|
|
|
|
RelayRequestJoinProc requestJoin;
|
|
|
|
# endif
|
2009-09-12 21:39:13 +00:00
|
|
|
#endif
|
|
|
|
void* closure;
|
|
|
|
} TransportProcs;
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2020-04-25 17:47:07 -07:00
|
|
|
CommsCtxt* comms_make( MPFORMAL XWEnv xwe, XW_UtilCtxt* util,
|
2022-05-14 07:10:48 -07:00
|
|
|
XP_Bool isServer,
|
2022-09-03 18:47:04 -07:00
|
|
|
const CommsAddrRec* selfAddr,
|
|
|
|
const CommsAddrRec* hostAddr,
|
2023-12-04 09:31:11 -08:00
|
|
|
const TransportProcs* procs,
|
2022-05-14 07:10:48 -07:00
|
|
|
#ifdef XWFEATURE_RELAY
|
2005-10-02 15:39:38 +00:00
|
|
|
XP_U16 nPlayersHere, XP_U16 nPlayersTotal,
|
2020-08-25 14:47:56 -07:00
|
|
|
RoleChangeProc rcp, void* rcClosure,
|
2023-12-04 09:31:11 -08:00
|
|
|
#endif
|
2024-01-03 17:40:43 -08:00
|
|
|
XP_U16 forceChannel );
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2020-04-25 17:47:07 -07:00
|
|
|
void comms_resetSame( CommsCtxt* comms, XWEnv xwe );
|
2009-02-01 15:50:58 +00:00
|
|
|
|
2020-04-26 11:28:18 -07:00
|
|
|
void comms_destroy( CommsCtxt* comms, XWEnv xwe );
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2023-02-05 08:59:37 -08:00
|
|
|
void comms_setConnID( CommsCtxt* comms, XP_U32 connID, XP_U16 streamVersion );
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2022-09-03 19:14:40 -07:00
|
|
|
void comms_getSelfAddr( const CommsCtxt* comms, CommsAddrRec* selfAddr );
|
2022-09-06 18:21:53 -07:00
|
|
|
XP_Bool comms_getHostAddr( const CommsCtxt* comms, CommsAddrRec* hostAddr );
|
2020-08-22 16:02:31 -07:00
|
|
|
void comms_addMQTTDevID( CommsCtxt* comms, XP_PlayerAddr channelNo,
|
|
|
|
const MQTTDevID* devID );
|
|
|
|
|
2023-02-03 22:00:47 -08:00
|
|
|
void comms_getAddrs( const CommsCtxt* comms, CommsAddrRec addr[],
|
|
|
|
XP_U16* nRecs );
|
2015-07-06 20:28:16 -07:00
|
|
|
XP_Bool comms_formatRelayID( const CommsCtxt* comms, XP_U16 indx,
|
|
|
|
XP_UCHAR* buf, XP_U16* lenp );
|
|
|
|
|
2023-11-06 12:51:10 -08:00
|
|
|
XP_U16 comms_countPendingPackets( const CommsCtxt* comms, XP_Bool* quashed );
|
2014-02-28 18:59:12 -08:00
|
|
|
|
2005-03-19 21:46:51 +00:00
|
|
|
|
2010-08-22 12:16:57 -07:00
|
|
|
#ifdef XWFEATURE_RELAY
|
2010-10-11 06:20:30 -07:00
|
|
|
XP_Bool comms_getRelayID( const CommsCtxt* comms, XP_UCHAR* buf, XP_U16* len );
|
2010-08-22 12:16:57 -07:00
|
|
|
#endif
|
|
|
|
|
2014-10-15 07:26:18 -07:00
|
|
|
CommsConnTypes comms_getConTypes( const CommsCtxt* comms );
|
2020-03-14 18:52:28 -07:00
|
|
|
void comms_dropHostAddr( CommsCtxt* comms, CommsConnType typ );
|
2023-12-05 08:43:22 -08:00
|
|
|
XP_Bool comms_getIsHost( const CommsCtxt* comms );
|
2005-06-27 05:45:28 +00:00
|
|
|
|
2020-04-25 17:47:07 -07:00
|
|
|
CommsCtxt* comms_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream,
|
2020-08-25 19:38:35 -07:00
|
|
|
XW_UtilCtxt* util, XP_Bool isServer,
|
2014-12-29 07:39:28 -08:00
|
|
|
const TransportProcs* procs,
|
2023-12-04 09:31:11 -08:00
|
|
|
#ifdef XWFEATURE_RELAY
|
2020-08-25 14:47:56 -07:00
|
|
|
RoleChangeProc rcp, void* rcClosure,
|
2023-12-04 09:31:11 -08:00
|
|
|
#endif
|
2014-12-29 07:39:28 -08:00
|
|
|
XP_U16 forceChannel );
|
2020-04-25 17:47:07 -07:00
|
|
|
void comms_start( CommsCtxt* comms, XWEnv xwe );
|
2022-05-14 07:10:48 -07:00
|
|
|
void comms_stop( CommsCtxt* comms
|
|
|
|
#ifdef XWFEATURE_RELAY
|
|
|
|
, XWEnv xwe
|
|
|
|
#endif
|
|
|
|
);
|
2023-02-03 22:00:47 -08:00
|
|
|
void comms_writeToStream( CommsCtxt* comms, XWStreamCtxt* stream,
|
2012-09-10 07:31:45 -07:00
|
|
|
XP_U16 saveToken );
|
2020-04-25 17:47:07 -07:00
|
|
|
void comms_saveSucceeded( CommsCtxt* comms, XWEnv xwe, XP_U16 saveToken );
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2014-11-02 17:24:37 -08:00
|
|
|
void addrFromStream( CommsAddrRec* addr, XWStreamCtxt* stream );
|
|
|
|
void addrToStream( XWStreamCtxt* stream, const CommsAddrRec* addr );
|
2022-09-06 12:16:29 -07:00
|
|
|
#ifdef XWFEATURE_COMMS_INVITE
|
|
|
|
void comms_invite( CommsCtxt* comms, XWEnv xwe, const NetLaunchInfo* nli,
|
2023-01-30 12:02:46 -08:00
|
|
|
const CommsAddrRec* destAddr, XP_Bool sendNow );
|
2023-02-01 11:59:05 -08:00
|
|
|
void comms_getInvited( const CommsCtxt* comms, XP_U16* nInvites );
|
2022-09-06 12:16:29 -07:00
|
|
|
#endif
|
2020-04-25 17:47:07 -07:00
|
|
|
XP_S16 comms_send( CommsCtxt* comms, XWEnv xwe, XWStreamCtxt* stream );
|
|
|
|
XP_S16 comms_resendAll( CommsCtxt* comms, XWEnv xwe, CommsConnType filter,
|
|
|
|
XP_Bool force );
|
2019-11-18 09:26:46 -08:00
|
|
|
|
2010-11-08 17:22:38 -08:00
|
|
|
XP_U16 comms_getChannelSeed( CommsCtxt* comms );
|
2023-02-16 21:36:46 -08:00
|
|
|
void comms_getChannelAddr( const CommsCtxt* comms, XP_PlayerAddr channelNo,
|
|
|
|
CommsAddrRec* addr );
|
2023-12-18 17:08:51 -08:00
|
|
|
XP_Bool comms_addrsAreSame( const CommsCtxt* comms, const CommsAddrRec* addr1,
|
|
|
|
const CommsAddrRec* addr2 );
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2012-04-13 20:21:59 -07:00
|
|
|
#ifdef XWFEATURE_COMMSACK
|
2020-04-25 17:47:07 -07:00
|
|
|
void comms_ackAny( CommsCtxt* comms, XWEnv xwe );
|
2012-04-13 20:21:59 -07:00
|
|
|
#endif
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2015-02-07 13:24:09 -08:00
|
|
|
typedef struct _CommsMsgState {
|
|
|
|
struct AddressRecord* rec;
|
2019-11-03 08:35:56 +00:00
|
|
|
XP_U32 msgID;
|
|
|
|
XP_PlayerAddr channelNo;
|
2021-03-15 16:58:17 -07:00
|
|
|
XP_U16 len;
|
2015-02-08 10:37:54 -08:00
|
|
|
#ifdef DEBUG
|
|
|
|
const CommsCtxt* comms;
|
|
|
|
#endif
|
2021-03-15 16:58:17 -07:00
|
|
|
#ifdef COMMS_CHECKSUM
|
|
|
|
XP_UCHAR sum[36];
|
|
|
|
#endif
|
2015-02-07 13:24:09 -08:00
|
|
|
} CommsMsgState;
|
2003-11-01 05:35:29 +00:00
|
|
|
|
2020-04-25 17:47:07 -07:00
|
|
|
XP_Bool comms_checkIncomingStream( CommsCtxt* comms, XWEnv xwe,
|
|
|
|
XWStreamCtxt* stream,
|
2015-02-07 13:24:09 -08:00
|
|
|
const CommsAddrRec* addr,
|
|
|
|
CommsMsgState* state );
|
2020-04-25 17:47:07 -07:00
|
|
|
void comms_msgProcessed( CommsCtxt* comms, XWEnv xwe,
|
|
|
|
CommsMsgState* state, XP_Bool rejected );
|
2010-10-21 19:14:10 -07:00
|
|
|
XP_Bool comms_checkComplete( const CommsAddrRec* const addr );
|
|
|
|
|
|
|
|
XP_Bool comms_canChat( const CommsCtxt* comms );
|
2010-10-27 20:50:11 -07:00
|
|
|
XP_Bool comms_isConnected( const CommsCtxt* const comms );
|
2023-11-06 11:20:00 -08:00
|
|
|
XP_Bool comms_setQuashed( CommsCtxt* comms, XWEnv xwe, XP_Bool quashed );
|
2009-09-05 13:08:46 +00:00
|
|
|
|
2017-11-10 21:34:02 -08:00
|
|
|
#ifdef RELAY_VIA_HTTP
|
|
|
|
void comms_gameJoined( CommsCtxt* comms, const XP_UCHAR* connname, XWHostID hid );
|
|
|
|
#endif
|
|
|
|
|
2020-09-25 10:17:47 -07:00
|
|
|
XP_Bool augmentAddr( CommsAddrRec* addr, const CommsAddrRec* newer,
|
|
|
|
XP_Bool isNewer );
|
2020-09-24 16:37:50 -07:00
|
|
|
|
2023-12-18 17:08:51 -08:00
|
|
|
XP_Bool addr_isEmpty( const CommsAddrRec* addr );
|
2014-09-25 20:05:37 -07:00
|
|
|
CommsConnType addr_getType( const CommsAddrRec* addr );
|
|
|
|
void addr_setType( CommsAddrRec* addr, CommsConnType type );
|
2014-10-15 07:26:18 -07:00
|
|
|
void addr_addType( CommsAddrRec* addr, CommsConnType type );
|
2014-10-28 08:03:19 -07:00
|
|
|
void addr_rmType( CommsAddrRec* addr, CommsConnType type );
|
2014-10-15 07:26:18 -07:00
|
|
|
XP_Bool addr_hasType( const CommsAddrRec* addr, CommsConnType type );
|
|
|
|
XP_Bool addr_iter( const CommsAddrRec* addr, CommsConnType* typp,
|
|
|
|
XP_U32* state );
|
2022-09-03 18:47:04 -07:00
|
|
|
void types_addType( XP_U16* conTypes, CommsConnType type );
|
|
|
|
void types_rmType( XP_U16* conTypes, CommsConnType type );
|
|
|
|
XP_Bool types_hasType( XP_U16 conTypes, CommsConnType type );
|
2015-07-01 07:10:45 -07:00
|
|
|
XP_Bool types_iter( XP_U32 conTypes, CommsConnType* typp, XP_U32* state );
|
2014-09-25 20:05:37 -07:00
|
|
|
|
2021-03-19 13:03:39 -07:00
|
|
|
#ifdef XWFEATURE_KNOWNPLAYERS
|
|
|
|
void comms_gatherPlayers( CommsCtxt* comms, XWEnv xwe, XP_U32 created );
|
|
|
|
#endif
|
|
|
|
|
|
|
|
const char* ConnType2Str( CommsConnType typ );
|
|
|
|
|
2003-11-01 05:35:29 +00:00
|
|
|
# ifdef DEBUG
|
2022-12-26 19:24:39 -08:00
|
|
|
void comms_getStats( const CommsCtxt* comms, XWStreamCtxt* stream );
|
2009-09-12 21:39:13 +00:00
|
|
|
const char* CommsRelayState2Str( CommsRelayState state );
|
2010-11-18 22:27:06 -08:00
|
|
|
const char* XWREASON2Str( XWREASON reason );
|
2014-11-06 06:35:28 -08:00
|
|
|
|
|
|
|
void comms_setAddrDisabled( CommsCtxt* comms, CommsConnType typ,
|
|
|
|
XP_Bool send, XP_Bool enabled );
|
|
|
|
XP_Bool comms_getAddrDisabled( const CommsCtxt* comms, CommsConnType typ,
|
|
|
|
XP_Bool send );
|
2023-12-18 17:08:51 -08:00
|
|
|
void logAddr( XW_DUtilCtxt* dutil, const CommsAddrRec* addr,
|
2023-02-16 21:36:46 -08:00
|
|
|
const char* caller );
|
2020-09-21 11:31:49 -07:00
|
|
|
|
2014-11-06 06:35:28 -08:00
|
|
|
# else
|
2015-02-07 12:54:46 -08:00
|
|
|
# define comms_setAddrDisabled( comms, typ, send, enabled )
|
2014-11-06 06:35:28 -08:00
|
|
|
# define comms_getAddrDisabled( comms, typ, send ) XP_FALSE
|
2003-11-01 05:35:29 +00:00
|
|
|
# endif
|
|
|
|
|
2005-01-31 03:31:50 +00:00
|
|
|
EXTERN_C_END
|
|
|
|
|
2003-11-01 05:35:29 +00:00
|
|
|
#endif /* _COMMS_H_ */
|