NO_ADDRESSES Statement

A NO_ADDRESSES statement in a declaration indicates that the request is not being sent to a particular address. Rather, the request checks that the process can be initiated. If so, a request can be made to a specific address. For example, an NDS_Janitor request, which contains a NO_ADDRESSES statement, can be sent to check that a Janitor operation can be initiated. If so, a Janitor_Open request can be made to a specific address.

Five of the NDS Traffic Types require NO_ADDRESSES statements. These are NDS_Backlinks, NDS_Janitor, NDS_Limber, NDS_Schema_Sync, and NDS_Check_Login_Restrictions.

The NO_ADDRESSES statement is the first statement in a declaration (it can be preceded by comments). A sample declaration showing a NO_ADDRESSES statement is shown below:

/* This policy limits all traffic to between 1 and 3 am */ 
NO_ADDRESSES
LOCAL BOOLEAN Selected;
SELECTOR
Selected := Now.hour > 1 AND Now.hour < 3;
IF Selected THEN
RETURN 50; /* between 1am and 3am this policy has a high priority */
ELSE
RETURN 1; /* return 1 instead of 0 in case there are no other policies */
/* if no policies return > 0, WanMan assumes SEND */
END
END
PROVIDER
IF Selected THEN
RETURN SEND; /* between 1am and 3am, SEND */
ELSE
RETURN DONT_SEND; /* other times, don't */
END
END


Previous | Next