System.Net.Socket.TSocket.State

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property State: TSocketStates read FState;

C++

__property TSocketStates State = {read=FState, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Net.Socket.pas
System.Net.Socket.hpp
System.Net.Socket TSocket

Description

The current state of the socket.

State is an array that contains the current socket states. Possible states are:

  • Connected
  • Client
  • Listening

The socket constructor sets the Connected and Client states. Socket destructor clears the array.

See Also