Fortinet white logo
Fortinet white logo

Script Reference Guide

UDP:receive()

UDP:receive()

Allows you to get data from a UDP datagram.

Syntax

UDP:receive(size)

Arguments

Name Description

size

The data size that you want to get from a UDP datagram.

Events

Applicable in the following events:

  • STREAM_REQUEST_DATA

  • STREAM_RESPONSE_DATA

Example

when STREAM_REQUEST_DATA { 
    local header = UDP:receive(20) 
} 

Supported Version

FortiADC version 6.1.1 and later.

UDP:receive()

UDP:receive()

Allows you to get data from a UDP datagram.

Syntax

UDP:receive(size)

Arguments

Name Description

size

The data size that you want to get from a UDP datagram.

Events

Applicable in the following events:

  • STREAM_REQUEST_DATA

  • STREAM_RESPONSE_DATA

Example

when STREAM_REQUEST_DATA { 
    local header = UDP:receive(20) 
} 

Supported Version

FortiADC version 6.1.1 and later.