From Overbyte
Jump to navigation Jump to search

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


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


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.