![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include "epicsThread.h"
#include "epicsMutex.h"
#include "epicsEvent.h"
#include "bucketLib.h"
#include "asLib.h"
#include "dbChannel.h"
#include "dbNotify.h"
#include "caProto.h"
#include "ellLib.h"
#include "epicsTime.h"
#include "epicsAssert.h"
#include "osiSock.h"
Go to the source code of this file.
Classes | |
struct | caHdrLargeArray |
struct | message_buffer |
struct | client |
struct | channel_in_use |
struct | event_ext |
struct | rsrv_iface_config |
Macros | |
#define | CA_MINOR_PROTOCOL_REVISION 13 |
#define | GLBLTYPE extern |
#define | GLBLTYPE_INIT(A) |
#define | DLOG(LEVEL, ARGSINPAREN) |
#define | CAS_HASH_TABLE_SIZE 4096 |
#define | SEND_LOCK(CLIENT) epicsMutexMustLock((CLIENT)->lock) |
#define | SEND_UNLOCK(CLIENT) epicsMutexUnlock((CLIENT)->lock) |
#define | LOCK_CLIENTQ epicsMutexMustLock (clientQlock); |
#define | UNLOCK_CLIENTQ epicsMutexUnlock (clientQlock); |
Typedefs | |
typedef struct caHdrLargeArray | caHdrLargeArray |
typedef struct client | client |
Enumerations | |
enum | messageBufferType { mbtUDP, mbtSmallTCP, mbtLargeTCP } |
enum | rsrvChanState { rsrvCS_invalid, rsrvCS_pendConnectResp, rsrvCS_inService, rsrvCS_pendConnectRespUpdatePendAR, rsrvCS_inServiceUpdatePendAR, rsrvCS_shutdown } |
enum | ctl { ctlInit, ctlRun, ctlPause, ctlExit } |
Variables | |
epicsThreadPrivateId | rsrvCurrentClient |
GLBLTYPE int | CASDEBUG |
GLBLTYPE unsigned short | ca_server_port |
GLBLTYPE unsigned short | ca_udp_port |
GLBLTYPE unsigned short | ca_beacon_port |
GLBLTYPE ELLLIST | servers |
GLBLTYPE ELLLIST | beaconAddrList |
GLBLTYPE SOCKET | beaconSocket |
GLBLTYPE ELLLIST | casIntfAddrList |
GLBLTYPE ELLLIST | casMCastAddrList |
GLBLTYPE epicsUInt32 * | casIgnoreAddrs |
GLBLTYPE epicsMutexId | clientQlock |
GLBLTYPE BUCKET * | pCaBucket |
GLBLTYPE void * | rsrvClientFreeList |
GLBLTYPE void * | rsrvChanFreeList |
GLBLTYPE void * | rsrvEventFreeList |
GLBLTYPE void * | rsrvSmallBufFreeListTCP |
GLBLTYPE void * | rsrvLargeBufFreeListTCP |
GLBLTYPE unsigned | rsrvSizeofLargeBufTCP |
GLBLTYPE void * | rsrvPutNotifyFreeList |
GLBLTYPE unsigned | rsrvChannelCount |
GLBLTYPE epicsEventId | casudp_startStopEvent |
GLBLTYPE epicsEventId | beacon_startStopEvent |
GLBLTYPE epicsEventId | castcp_startStopEvent |
GLBLTYPE enum ctl | casudp_ctl |
GLBLTYPE enum ctl | beacon_ctl |
GLBLTYPE enum ctl | castcp_ctl |
GLBLTYPE unsigned int | threadPrios [5] |
#define LOCK_CLIENTQ epicsMutexMustLock (clientQlock); |
#define SEND_LOCK | ( | CLIENT | ) | epicsMutexMustLock((CLIENT)->lock) |
#define SEND_UNLOCK | ( | CLIENT | ) | epicsMutexUnlock((CLIENT)->lock) |
#define UNLOCK_CLIENTQ epicsMutexUnlock (clientQlock); |
typedef struct caHdrLargeArray caHdrLargeArray |
enum ctl |
Enumerator | |
---|---|
ctlInit | |
ctlRun | |
ctlPause | |
ctlExit |
enum messageBufferType |
Enumerator | |
---|---|
mbtUDP | |
mbtSmallTCP | |
mbtLargeTCP |
enum rsrvChanState |
Enumerator | |
---|---|
rsrvCS_invalid | |
rsrvCS_pendConnectResp | |
rsrvCS_inService | |
rsrvCS_pendConnectRespUpdatePendAR | |
rsrvCS_inServiceUpdatePendAR | |
rsrvCS_shutdown |
Definition at line 118 of file server.h.
int camessage | ( | struct client * | client | ) |
Definition at line 2391 of file camessage.c.
void camsgtask | ( | void * | client | ) |
Definition at line 42 of file camsgtask.c.
void cas_commit_msg | ( | struct client * | pClient, |
ca_uint32_t | size | ||
) |
Definition at line 351 of file caserverio.c.
int cas_copy_in_header | ( | struct client * | pClient, |
ca_uint16_t | response, | ||
ca_uint32_t | payloadSize, | ||
ca_uint16_t | dataType, | ||
ca_uint32_t | nElem, | ||
ca_uint32_t | cid, | ||
ca_uint32_t | responseSpecific, | ||
void ** | pPayload | ||
) |
Definition at line 251 of file caserverio.c.
void cas_send_bs_msg | ( | struct client * | pclient, |
int | lock_needed | ||
) |
Definition at line 44 of file caserverio.c.
void cas_send_dg_msg | ( | struct client * | pclient | ) |
Definition at line 173 of file caserverio.c.
void cas_set_header_cid | ( | struct client * | pClient, |
ca_uint32_t | |||
) |
Definition at line 329 of file caserverio.c.
void cas_set_header_count | ( | struct client * | pClient, |
ca_uint32_t | count | ||
) |
Definition at line 335 of file caserverio.c.
void casAttachThreadToClient | ( | struct client * | ) |
Definition at line 1307 of file caservertask.c.
void casExpandRecvBuffer | ( | struct client * | pClient, |
ca_uint32_t | size | ||
) |
Definition at line 1394 of file caservertask.c.
void casExpandSendBuffer | ( | struct client * | pClient, |
ca_uint32_t | size | ||
) |
Definition at line 1389 of file caservertask.c.
void cast_server | ( | void * | ) |
Definition at line 116 of file cast_server.c.
Definition at line 1225 of file caservertask.c.
struct client* create_tcp_client | ( | SOCKET | sock, |
const osiSockAddr * | peerAddr | ||
) |
Definition at line 1402 of file caservertask.c.
void destroy_client | ( | struct client * | ) |
Definition at line 1047 of file caservertask.c.
void destroy_tcp_client | ( | struct client * | ) |
Definition at line 1191 of file caservertask.c.
GLBLTYPE ELLLIST clientQ GLBLTYPE_INIT | ( | ELLLIST_INIT | ) |
void initializePutNotifyFreeList | ( | void | ) |
Definition at line 1530 of file camessage.c.
void rsrv_extra_labor | ( | void * | pArg | ) |
Definition at line 1497 of file camessage.c.
void rsrv_online_notify_task | ( | void * | ) |
Definition at line 40 of file online_notify.c.
int rsrv_version_reply | ( | struct client * | client | ) |
Definition at line 2141 of file camessage.c.
int rsrvCheckPut | ( | const struct channel_in_use * | pciu | ) |
Definition at line 2566 of file camessage.c.
void rsrvFreePutNotify | ( | struct client * | pClient, |
struct rsrv_put_notify * | pNotify | ||
) |
Definition at line 1616 of file camessage.c.
unsigned rsrvSizeOfPutNotify | ( | struct rsrv_put_notify * | pNotify | ) |
Definition at line 1604 of file camessage.c.
GLBLTYPE epicsEventId beacon_startStopEvent |
GLBLTYPE epicsUInt32* casIgnoreAddrs |
GLBLTYPE epicsEventId castcp_startStopEvent |
GLBLTYPE epicsEventId casudp_startStopEvent |
GLBLTYPE epicsMutexId clientQlock |
epicsThreadPrivateId rsrvCurrentClient |
Definition at line 50 of file caservertask.c.