January 15th, 2004, 01:17 AM
First, I think the OnStatus only fires on the following events:
(reproducing from the help documentation)
TIdStatus is an enumerated type that represents the connection status for an Indy component. TIdStatus can contain one of the following values:
hsResolving - A host name is being resolved to an IP Address
hsConnecting - A connection is being opened
hsConnected - A connection has been made
hsDisconnecting - The connection is being closed
hsDisconnected - The connection has been closed
hsText - The connection is generating an informational message
I don't believe there's one when it sends or receives a message. However, there are some third party components that do have events for this -- TWSocket from www.overbyte.be
(ICS - Internet Component Suite) has events for send and receive IIRC. The ICS components are free and come with sample code as well.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne