Set server mode

Command group Flag affected Reversible Execute on client Platform(s)
Exchanging data NO YES NO Windows

Syntax

Set server mode ([Field requests][,Field values][,Advise requests][,Commands])

Options

Field requests If specified, Omnis will accept DDE field request commands (see command Accept field requests)
Field values If specified, Omnis will accept DDE field value commands (see command Accept field values)
Advise requests If specified, Omnis will accept DDE advise request commands (see command Accept advise requests)
Commands If specified, Omnis will accept DDE commands (see command Accept commands)

Description

This command sets Omnis to act as a DDE server and specifies which DDE commands it will accept. With one or more of the check box options selected Omnis will respond to the corresponding commands and demands from a client. If none is selected, server mode is deselected.

All four server mode check box options have equivalent DDE commands which are described separately: Accept field requestsAccept field valuesAccept advise requests and Accept commands.

Irrespective of the mode selected, Omnis will only accept field values and commands when in enter data mode, and accept commands when no methods are running.

Omnis will only respond to a request to act as a server if the Initiate message from the client contains at least the name of the program, that is, Omnis. If the client specifies a topic, it has to be equal to the Omnis library name without the .lbr extension. Omnis responds with the current library name if the client does not specify the topic.

If no options are set, Omnis is disabled as a server except for the System Topic. If Omnis is already a server when the options under Set server mode are disabled, one of two things will happen:

  1. If the options have been disabled during a reversible block, the client sending the Initiate message will get busy acknowledgments until the reversible command method finishes. You cannot initiate any new conversations during this time.

  2. Omnis will end the communication by sending the client a Terminate message.

All four server mode options have equivalent commands which are described separately: Accept field requestsAccept field valuesAccept advise requests and Accept commands.

Example

Set server mode (Field requests)