UDP::sendbuffer

Description

This command can be used to set/get the maximum send buffer size (bytes) of a UDP connection.

Syntax

UDP::sendbuffer [size]

UDP::sendbuffer

  • Returns the maximum send buffer size (bytes) of a UDP connection.

UDP::sendbuffer [size]

  • size sets the maximum send buffer size (bytes) to specified value. ===Examples===

# Get/set the send buffer size of the UDP flow.
when CLIENT_ACCEPTED {
    log local0. "UDP get send buffer: [UDP::sendbuffer]"
    # Set the send buffer to 2,000,000 bytes
    log local0. "UDP set send buffer: [UDP::sendbuffer 2000000]"
    log local0. "UDP get send buffer: [UDP::sendbuffer]"
}