34 #define epicsExportSharedSymbols 59 if (longStatus || maxPeriod<=0.0) {
70 memset((
char *)&msg, 0,
sizeof msg);
88 status = sendto (
beaconSocket, (
char *)&msg,
sizeof(msg), 0,
92 if(err != lastError[i]) {
99 sockDipBuf, sockErrBuf);
105 assert (status ==
sizeof(msg));
118 if (delay<maxdelay) {
120 if (delay>maxdelay) {
125 msg.
m_cid = htonl ( beaconCounter++ );
void taskwdInsert(epicsThreadId tid, TASKWDFUNC callback, void *usr)
#define assert(exp)
Declare that a condition should be true.
#define ellCount(PLIST)
Report the number of nodes in a list.
LIBCOM_API const ENV_PARAM EPICS_CA_BEACON_PERIOD
deprecated
char * name
Name of the parameter.
#define CONTAINER(ptr, structure, member)
Find parent object from a member pointer.
LIBCOM_API const char *epicsStdCall envGetConfigParamPtr(const ENV_PARAM *pParam)
Get a configuration parameter's value or default string.
GLBLTYPE SOCKET beaconSocket
Routines to get and set EPICS environment parameters.
void rsrv_online_notify_task(void *pParm)
Miscellaneous macro definitions.
#define CA_MINOR_PROTOCOL_REVISION
GLBLTYPE ELLLIST beaconAddrList
#define ellNext(PNODE)
Find the next node in list.
LIBCOM_API long epicsStdCall envGetDoubleConfigParam(const ENV_PARAM *pParam, double *pDouble)
Get value of a double configuration parameter.
#define epicsEventSignal(ID)
A synonym for epicsEventTrigger().
LIBCOM_API const ENV_PARAM EPICS_CAS_BEACON_PERIOD
LIBCOM_API void * callocMustSucceed(size_t count, size_t size, const char *msg)
A calloc() that never returns NULL.
int errlogPrintf(const char *pFormat,...)
GLBLTYPE enum ctl beacon_ctl
LIBCOM_API void epicsStdCall epicsThreadSleep(double seconds)
Block the calling thread for at least the specified time.
GLBLTYPE unsigned short ca_server_port
GLBLTYPE epicsEventId beacon_startStopEvent
Routines for code that can't continue or return after an error.
#define CA_PROTO_RSRV_IS_UP
void epicsSocketConvertErrorToString(char *pBuf, unsigned bufSize, int theSockError)
unsigned epicsStdCall ipAddrToDottedIP(const struct sockaddr_in *paddr, char *pBuf, unsigned bufSize)
#define ellFirst(PLIST)
Find the first node in list.
LIBCOM_API epicsThreadId epicsStdCall epicsThreadGetIdSelf(void)