TWSocket.OnChangeState

From Overbyte
Revision as of 06:42, 9 July 2011 by Fpiette (talk | contribs) (Added description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Main page -> ICS component reference -> TWSocket -> OnChangeState

Definition

event OnChangeState Sender:TObject; OldState, NewState : TSocketState;

Description

OnChangeState is triggered each time TWSocket internal state changes. This event is intended for display or logging purpose only.

Best practices

Don't use it to manage your application state/flow. Instead, use OnSessionConnected, OnSessionAvailable, OnSessionClosed and OnDataAvailable.