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.

Deprecated
SSLGetDatagramWriteSize

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

Deprecated
SSLSetMaxDatagramRecordSize

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

Deprecated
SSLSetDatagramHelloCookie

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

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software