Platform SDK: Logon Authentication

Datagram Contexts

The semantics for datagram, or connectionless, contexts differ slightly from those for connection-oriented contexts. In a datagram's connectionless context, a server cannot determine when the client has shut down or otherwise terminated the connection. In other words, no termination notice is passed from the transport application to the server as would occur in a connection-oriented context.

To use a datagram context, a client sets the ISC_REQ_DATAGRAM flag in its call to the InitializeSecurityContext function.

To better support some models, particularly DCE-style RPC, the following rules apply when the client uses a datagram context:

A security package sets the SECPKG_FLAG_DATAGRAM flag to indicate that it supports datagram semantics.