
January 15th, 2004, 12:17 AM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
|
|
First, I think the OnStatus only fires on the following events:
(reproducing from the help documentation)
Code:
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
Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month
Looking for a perl job with kick-*** programmers in a well-known NASDAQ listed tech company with branches in the US and Europe? We're hiring. PM me for details. Requirements
|