TWSocket.OnChangeState
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.