Explicit negotiation

Explicit negotiation takes place at connect time, from within the SRV_CONNECT event handler. The Open Server application retrieves the list of request capabilities sent by the client and returns the list of request capabilities it will accept. The process is repeated, this time with the list of response capabilities a client does not want to receive or those the Open Server application cannot return.

An application can retrieve and send capabilities one at a time or can retrieve and send an entire bitmask of capabilities at once. Open Server provides macros to test, clear, and set bits in a capability mask. For more information, see “Capability macros”.