1407 unsigned priorityOfEvents;
1415 client->
addr = peerAddr->
ia;
1435 status = setsockopt (
sock, IPPROTO_TCP, TCP_NODELAY,
1436 (
char *) &intTrue,
sizeof (intTrue) );
1438 errlogPrintf (
"CAS: TCP_NODELAY option set failed\n" );
1447 status = setsockopt (
sock, SOL_SOCKET, SO_KEEPALIVE,
1448 (
char *) &intTrue,
sizeof (intTrue) );
1450 errlogPrintf (
"CAS: SO_KEEPALIVE option set failed\n" );
1467 status = setsockopt (
sock, SOL_SOCKET, SO_SNDBUF, (
char *) &
i,
sizeof (
i) );
1474 status = setsockopt (
sock, SOL_SOCKET, SO_RCVBUF, (
char *) &
i,
sizeof (
i) );
1482 client->
evuser = (
struct event_user *) db_init_events ();
1483 if ( ! client->
evuser ) {
1484 errlogPrintf (
"CAS: unable to init the event facility\n");
1490 if (status != DB_EVENT_OK) {
1491 errlogPrintf(
"CAS: unable to setup the event facility\n");
1505 status = db_start_events ( client->
evuser,
"CAS-event",
1507 if ( status != DB_EVENT_OK ) {
1508 errlogPrintf (
"CAS: unable to start the event facility\n" );
int rsrv_version_reply(struct client *client)
LIBCOM_API int asCheckClientIP
void destroy_tcp_client(struct client *client)
void destroy_client(struct client *client)
int errlogPrintf(const char *pFormat,...)
struct client * create_client(SOCKET sock, int proto)
LIBCOM_API epicsThreadBooleanStatus epicsStdCall epicsThreadHighestPriorityLevelBelow(unsigned int priority, unsigned *pPriorityJustBelow)
#define epicsThreadPriorityCAServerLow
void rsrv_extra_labor(void *pArg)
LIBCOM_API int epicsStdCall epicsSnprintf(char *str, size_t size, const char *format,...) EPICS_PRINTF_STYLE(3
unsigned epicsStdCall ipAddrToDottedIP(const struct sockaddr_in *paddr, char *pBuf, unsigned bufSize)