Thread: UDP status

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Hungary
    Posts
    43
    Rep Power
    12

    UDP status


    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?
    Thx!
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,643
    Rep Power
    4248
    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

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Hungary
    Posts
    43
    Rep Power
    12
    Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo