9.13 NetStat Object

Provides network activity statistics such as:

9.13.1 BytesReceived property

Returns the number of bytes received by the server.

Syntax

object.BytesReceived

Type

Long.

Attributes

Read-only.

Example

This example returns the number of bytes received by the server.

  set srv = CreateObject ("ucx:Server") 
set statobj = srv.netstat 
     print (statobj.bytesrcecived) &" bytes received by the server"

9.13.2 BytesSent property

Returns the number of bytes sent by the server.

Syntax

object.BytesSent

Type

Long.

Attributes

Read-only.

Example

This example returns the number of bytes sent by the server.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.netstat 
     print (statobj.bytessent) &" bytes sent by the server"

9.13.3 PacketsRead property

Returns the number of packets read by the server.

Syntax

object.PacketsRead

Type

Long.

Attributes

Read-only.

Example

This example returns the number of packets were read by the server.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.netstat 
     print (statobj.PacketsRead) &" packets read by the server"

9.13.4 PacketsRouted property

Returns the number of packets routed by the server.

Syntax

object.PacketsRouted

Type

Long.

Attributes

Read-only.

Example

This example returns the number of packets were routed by the server.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.netstat 
     print (statobj.PacketsRouted) &" packets were routed by the server"

9.13.5 PacketsSent property

Returns the number of packets sent by the server.

Syntax

object.PacketsSent

Type

Long.

Attributes

Read-only.

Example

This example returns the number of packets sent by the server.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.netstat 
     print (statobj.PacketsSent) &" packets were sent by the server"