State Property (Winsock Control)

       

Returns the state of the control, expressed as an enumerated type. Read-only and unavailable at design time.

Syntax

object.State

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Data Type

Integer

Settings

The settings for the State property are:

Constant Value Description
sckClosed 0 Default. Closed
sckOpen 1 Open
sckListening 2 Listening
sckConnectionPending 3 Connection pending
sckResolvingHost 4 Resolving host
sckHostResolved 5 Host resolved
sckConnecting 6 Connecting
sckConnected 7 Connected
sckClosing 8 Peer is closing the connection
sckError 9 Error