
20 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
3
OS_TCP::win
Description
Returns the window size (in bytes) of the current TCP packet. Returns undefined if called in invalid
context.
Context
Called in context of TCP and HTTP.
Usage
Can be used to perform load-balancing based on the window size.
Input Parameters
None.
Return Values
The following table contains the return values.
Example
OS_TCP::seq
Description
Returns the sequence number if called in valid context otherwise it returns undefined.
TABLE 13 Return Values
Name Type Description
Window size of current TCP packet else returns undefined
if called in invalid context.
use OS_TCP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST {
my $win = OS_TCP::win;
if($win eq 0)
{
OS_SLB::log("window size is zero\n");
}
}
Comentarios a estos manuales