;; 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
]


Reply via email to