Function

SSLSetMaxDatagramRecordSize

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

Declaration

OSStatus SSLSetMaxDatagramRecordSize(SSLContextRef dtlsContext, size_t maxSize);

Parameters

dtlsContext

The SSL context associated with the connection.

maxSize

The length value.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

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

You can specify a new value 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.

SSLGetMaxDatagramRecordSize

Obtains 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.