script.4 339 B

12345678910111213
  1. kohala % ./udpcli01 192.3.4.5 echo
  2. hi there
  3. socket timeout
  4. and hello
  5. socket timeout
  6. kohala % ./udpcli01 gemini.tuc.noao.edu echo
  7. hello, world
  8. ICMP error: dest = 140.252.4.54.7, Connection refused, type = 3, code = 3
  9. kohala % ./udpcli01 192.3.4.5 echo
  10. hello
  11. ICMP error: dest = 192.3.4.5.7, No route to host, type = 3, code = 1