Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Problem with try [ open/direct/binary tcp://... ]

From: eventi:nyic at: 2-Oct-2000 15:16

;; This fails whenever the host's gone away (OFTEN!!) ;; ** Access Error: Cannot connect to 127.10.176.206. ;; ** Where: Open/direct/binary probe To-url join "tcp://" ;; Isn't try supposed to catch and handle this? If not, how else could I ;; do it? Connect: Func [ ip port ] [ Gp: try [ Open/direct/binary probe To-url join "tcp://" [ Ip ":" port ] ] if not error? gp [ insert gp "GNUTELLA CONNECT/0.4^/^/" print to-string data: copy gp ] return gp ]