9.12 NetAddress Object

Represents the network address of a node on the network.

9.12.1 Net property

Represents the network address of a node on the network.

Syntax

object.Net

Type

String.

Attributes

Read-only.

Example

This example shows the Net property in its typical context.

’Find the 10th connection and list the connection information. 
set srv = createobject ("ucx:Server") 
set conns = srv.Clients 
set Connection=conns.Element(10) 
print (connection.address.net) &' is the network number'

9.12.2 Node property

Represents the node address.

Syntax

object.Node

Type

String.

Attributes

Read-only.

Remarks

This property returns the actual address of the client. Returns 1 for a server.

Example

This example shows the Node property in its typical context.

’Find the 10th connection and list the connection information. 
set srv = createobject ("ucx:Server") 
set conns = srv.Clients 
set Connection=conns.Element(10) 
print (connection.address.node) &' is the node address'

9.12.3 Socket property

Represents the socket number.

Syntax

object.Socket

Type

String.

Attributes

Read-only.

Example

This example shows the Socket property in its typical context.

’Find the 10th connection and lsit the connection information. 
set srv = createobject ("ucx:Server") 
set conns = srv.clients 
set Connection=conns.Element(10) 
print (connection.address.socket) &' is the socket number'