Socket.Status Property

Top 

Description

The status code of the socket. This property is not used unless ErrorAction is set to "Ignore". In this case, the property starts with the value 0, indicating no error. If a socket operation causes an error, the property's value will be changed to the positive integer error code from the failed operation. After inspecting the error code, the property should be set back to 0 in the script - a subsequent successful socket operation will not reset the value.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Attributes

Type:

integer

Access:

read/write

Default Value:

0

 

Syntax

myVariable1 = mySocket1.Status;

 

mySocket1.Status = myVariable1;

 

See also

Socket Object

Interfacing with Sockets Guide