beautypg.com

Os_tcp::options, Return values, Example – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 34: Description, Context, Usage, Input parameters

background image

22

Brocade Virtual ADX OpenScript API Guide

53-1003243-01

Methods

3

Return Values

The following table contains the return values.

Example

OS_TCP::options

Description

Returns options as hexadecimal string if present otherwise it returns undefined.

Context

Called in context of TCP and HTTP.

Usage

Can be used to perform load-balancing based on options.

Input Parameters

None.

Return Values

The following table contains the return values.

TABLE 15

Return Values

Name

Type

Description

Acknowledgement

number.

TABLE 16

Return Values

Name

Type

Description

hex string

Options returned as
hexadecimal string.

use OS_TCP;

use OS_HTTP_REQUEST;

sub HTTP_REQUEST {

my $ack = OS_TCP::ack;

print "Acknowledge number is $ack\n";

}