January 8th, 2004, 10:03 AM
I have a project which communicates using the Indy UDP client/server. I need to know whether they are transmitting/receiving data at the moment (to control a TX/RX led), but their OnStatus event never seems to be fired. Does anyone know why? Or have any idea to solve this problem?
January 15th, 2004, 01:17 AM
First, I think the OnStatus only fires on the following events:
(reproducing from the help documentation)
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.
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
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
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
January 29th, 2004, 03:18 PM