home *** CD-ROM | disk | FTP | other *** search
- '***********************************************************************
- ' Server.rlz
- '
- ' Realizer Reference Guide : Chapter 25
- '
- ' Copyright ⌐ 1991-1992 Computer Associates International, Inc.
- ' All rights reserved.
- '
- '***********************************************************************
-
- PROC ServerInitiator(Session, Message, App, Topic)
- ' Message is always _Initiate
- ' App is the application being sought
- ' Topic is the topic they want to use
-
- ' Only answer if the message is for us
- IF App = "Realizer" THEN
- IF DDENew(Session, App, Topic) THEN
- DDESetProc(ServerProc)
- END IF
- END IF
- END PROC
-
-
- PROC ServerProc(Session, Message, Topic, Data)
- IF Message <> _Close THEN
- DDESelect(Session)
- END IF
- SELECT CASE Message
- CASE _Request
- ' The client is requesting data on the
- ' topic. The data shoul be sent to the
- ' client with DDEControl(_Data).
-
- CASE _Advise
- ' The client is requesting that it be
- ' kept advised in any changes to the
- ' topic. The server should set a flag
- ' and send the client a _Data message
- ' any time the topic is updated.
-
- CASE _Unadvise
- ' The client is canceling a previous
- ' Advise. The server should note that
- ' _Data messages no longer need to be
- ' sent for this topic.
-
- CASE _Poke
- ' The client is sending data to the
- ' server. The server can use the data
- ' to update its values.
-
- CASE _Execute
- ' The client is sending a list of
- ' commands, in Topic, that it wants
- ' the server to execute.
-
- CASE _Close
- ' The client is shutting down and notifying
- ' the server. The server can clean any data
- ' relating to the session, such as an Advise
- ' flag. The server should not try to select
- ' or communicate with this session anymore.
-
- END SELECT
- END PROC
-