Events

Two Open Server events, SRV_LISTEN_PREBIND and SRV_LISTEN_POSTBIND, support dynamic listeners.

Table 12: Open Server events

Event

Description

Argument to handler

Default event handler

SRV_LISTEN_PREBIND

Allows additional configuration of the listener identified by the specified SRV_PROC control structure. For example, you can specify an alternate SSL certificate. This configuration is accomplished using thread properties.

SRV_PROC*

The default handler takes no action.

SRV_LISTEN_POSTBIND

Allows the final configuration of the listener identified by the specified SRV_PROC control structure to be determined. For example, the address to which the listener was bound can be determined.

Configuration is determined using thread properties.

SRV_PROC*

The default handler takes no action.