Chapter Contents |
Previous |
Next |
SAS/CONNECT User's Guide |
A typical server application using direct-messaging would execute the following steps:
A typical client application using direct-messaging would execute the following steps:
To accomplish the above steps, direct messaging provides two SCL classes (STATION and CNCTION) and a set of SCL methods for each class. When designing a direct messaging application, the application programmer must choreograph the client and server portions carefully. Using direct messaging, the SCL _query method will block until an incoming event is received. Also, the _send method will block if the receiving side is not listening for any messages.
You must specify a nickname (moniker) in any SAS server session (the session to which applications will connect). This value is then used by any client session in order to locate the server when connecting by using the CONNECT method.
The syntax for specifying the moniker is:
%let _moniker=protocol//network_node/service_name;
If you omit protocol, the moniker uses the default access method for that host. If you omit network_node, the moniker defaults to the local node. For example, by specifying the following in a SAS session that runs on a node named MYNODE
%let _moniker=/shr1;you would default to the TCP/IP access method on the network node MYNODE, which uses the service name SHR1. The moniker can be initialized anywhere in the SAS application, prior to calling the direct-messaging methods.
Note: TCP/IP is the only access method that supports
distributed messaging.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.