From fb983fe3825caf76858e7f4df4b466b7eb447cf3 Mon Sep 17 00:00:00 2001
From: Ralph Lange Certain CA client initiated requests asynchronously execute an application
supplied call back in the client process when a response arrives. The functions
-ca_put_callback, ca_get_callback, and ca_add_event all request notification of
+ca_put_callback, ca_get_callback, and ca_create_subscription all request notification of
asynchronous completion via this mechanism. The The circuit may be initially connected or disconnected depending on the
state of the network and the location of the channel. A channel will only enter
-a connected state after server's address is determined, and only if channel
+a connected state after the server's address is determined, and only if channel
access successfully establishes a virtual circuit through the network to the
server. Channel access routines that send a request to a server will return
ECA_DISCONNCHID if the channel is currently disconnected.event_handler_args
structure is passed by value to the application supplied
callback. In this structure the dbr field is a void pointer to any
@@ -2679,7 +2679,7 @@ on a channel.
The following structure is passed by value to the user's
- connection connection callback function. The op field will
+ connection callback function. The op field will
be set by the CA client library to CA_OP_CONN_UP when the
channel connects, and to CA_OP_CONN_DOWN when the channel
disconnects. See ca_puser if the
@@ -3056,10 +3056,10 @@ int ca_create_subscription ( chtype TYPE, unsigned long COUNT,
invoked whenever the process variable undergoes significant state changes. A
significant change can be a change in the process variable's value, alarm
status, or alarm severity. In the process control function block database the
-deadband field determines the magnitude of a significant change for for the
+deadband field determines the magnitude of a significant change for the
process variable's value. Each call to this function consumes resources in the
client library and potentially a CA server until one of ca_clear_channel or
-ca_clear_event is called.
Subscriptions may be installed or canceled against both connected and disconnected channels. The specified USERFUNC is called once immediately after @@ -3067,7 +3067,7 @@ the subscription is installed with the process variable's current state if the process variable is connected. Otherwise, the specified USERFUNC is called immediately after establishing a connection (or reconnection) with the process variable. The specified USERFUNC is called immediately with the process -variable's current state from within ca_add_event() if the client and the +variable's current state from within ca_create_subscription() if the client and the process variable share the same address space.
If a subscription is installed on a channel in a disconnected state then the @@ -3125,7 +3125,7 @@ indicating the current state of the channel.
PEVIDMASKCancel a subscription.
-All ca_clear_event() requests such as the above are accumulated (buffered) +
All cancel-subscription requests such as the above are accumulated (buffered) and not forwarded to the server until one of ca_flush_io, ca_pend_io, ca_pend_event, or ca_sg_pend are called. This allows several requests to be efficiently sent together in one message.
@@ -3181,7 +3181,7 @@ efficiently sent together in one message.The ca_pend_event function will not return before the specified
-time-out expires and all unfinished channel access labor has been processed,
+timeout expires and all unfinished channel access labor has been processed,
and unlike ca_pend_io returning from the
function does not indicate anything about the status of pending IO
requests.
void ca_test_event (); -status = ca_add_event ( type, chid, ca_test_event, NULL, NULL ); +status = ca_create_subscription ( type, chid, ca_test_event, NULL, NULL ); SEVCHK ( status, .... );
ca_sg_create()#include <cadef.h>