Function

SSLGetMaxDatagramRecordSize

Obtains the maximum datagram record size allowed by the application for a given context.

Declaration

OSStatus SSLGetMaxDatagramRecordSize(SSLContextRef dtlsContext, size_t *maxSize);

Parameters

dtlsContext

The SSL context associated with the connection.

maxSize

The address of a size_t integer for storing the length.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

The returned size includes all Datagram Transport Layer Security (DTLS) headers.

You can specify a new size by calling SSLSetMaxDatagramRecordSize, up to the maximum size of a UDP packet (which, in turn, is based on the underlying IP protocol).

See Also

Write Operations

SSLWrite

Performs a typical application-level write operation.

SSLGetDatagramWriteSize

Provides the largest packet that the OS guarantees it can send without fragmentation.

SSLSetMaxDatagramRecordSize

Sets the maximum datagram record size allowed by the application for a given context.

SSLSetDatagramHelloCookie

Sets the cookie value used in the Datagram Transport Layer Security (DTLS) hello message.