Jump to: navigation, search

TScanServerMode

Syntax

typedef enum {
	TSCAN_MODE_DEFAULT,
	TSCAN_MODE_SYNC,
	TSCAN_MODE_ASYNC,
	TSCAN_MODE_CONNECT,
	TSCAN_MODE_WRITE,
	TSCAN_MODE_WRITE_ALL
} TScanServerMode;

Values

  • TSCAN_MODE_DEFAULT — Use with SyncMode connections. This provides the same functionality as TScanServer(), with the addition of processing ADDP timeouts, if ADDP protocol is configured.
  • TSCAN_MODE_SYNC — Provides the same functionality as TSCAN_MODE_DEFAULT.
  • TSCAN_MODE_ASYNC — Use with AsyncMode connections. In this case, TScanServerEx() also sends pending messages for a given server, if applicable.
  • TSCAN_MODE_CONNECT — Use after TOpenServer() to wait for a connection that is opening in asynchronous mode so that the connection is properly opened and registered.
Important
This mode is deprecated, and remains available primarily for backward compatibility. TSCAN_MODE_ASYNC should be used for AsyncMode connections in most cases.
  • TSCAN_MODE_WRITE — When added to TSCAN_MODE_SYNC, pending messages for a given server are sent. This parameter does not affect TSCAN_MODE_ASYNC.
  • TSCAN_MODE_WRITE_ALL — When added to either TSCAN_MODE_SYNC or TSCAN_MODE_ASYNC, pending messages for all registered connections are sent.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on June 27, 2017, at 12:22.