Home AMX User Forum AMX Technical Discussion

How do you tell if a UDP device goes offline?

I pulled the network cable out and continued to send strings to the device and no error or anything. Please don't say I have to set up a queue/ack-counter thing.

Comments

  • ericmedleyericmedley Posts: 4,177
    travis wrote: »
    I pulled the network cable out and continued to send strings to the device and no error or anything. Please don't say I have to set up a queue/ack-counter thing.

    does it respond to ping? If so, you could jimmy rig a telnet session into your master and ping it. Not pretty, but it would work. Have they ever added a ping command. that'd be cool!.
  • truetrue Posts: 307
    UDP is stateless. You don't connect to a target so much as just send crap to it and hope it listens.

    You can ICMP ping the target to detect it being up only if it responds to ICMP ping. If you can control the destination protocol, you can have it talk back on successful receipt then work from that.
Sign In or Register to comment.