State

This property returns the state of the Winsock control, expressed as an enumerated type.

Syntax

object.State

Parameters

object
Object expression that evaluates to a Winsock control.

The following table shows the settings for the State property.
Constant
Value
Description
sckClosed 0 Closed (default)
sckOpen 1 Open
sckListening 2 Listening
sckConnected 7 Connected
sckError 9 Error

Remarks

The State property is read-only at run time. It is unavailable at design time.