State Property  
 

Return the current state of the socket.

This property has been deprecated and should no longer be used in new applications.

Syntax

object.State

Remarks

This property returns the state of the socket. The possible values returned by this property are:

Value Description
swStatusUnused The socket has not been created. Attempts to use the socket will generate an error.
swStatusIdle The socket exists, but is not currently in use. A blocking socket operation can be executed at this point.
swStatusListen The socket is listening for connections from remote hosts.
swStatusConnect The socket is in the process of connecting to a remote host
swStatusAccept The socket is in the process of accepting a connection from a remote client
swStatusRead The socket is in the process of receiving data
swStatusWrite The socket is in the process of sending data
swStatusFlush The socket buffers are in the process of being flushed.
swStatusDisconnect The socket is being closed. Subsequent attempts to access the socket will result in an error.

Data Type

Integer (Int32)

See Also