You should have receive a notification that the connection has dropped
that's the nature of TCP!
-Original Message-
From: Petr Krenzelok [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2001 09:23
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: tcp port open?
Maarten Koopmans wrote:
Hi,
This is how my tcp-server deals with it
wait-ports: none
listen-port: open/no-wait/direct/binary tcp://:
wait-ports: [ listen-port ]
forever [
; Perform asynch wait !!!
wait wait-ports
; Is port descriptor set ?
if not ( none? ( wait [ 0 listen-port ] ) )
In addition you could place a timeout on the wait
wait wait-ports 600
..and then loop through the port block performing the checks
-Original Message-
From: Maarten Koopmans [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2001 11:53
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: tcp port open?
why not simply assign the port-id to an arbitrary variable and walkthru the
port array ?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2001 13:56
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: Advanced port stuff
You might try checking out
When I perform the following:
append port s
a single LF is converted into CRLF
How can I prevent this from happening ?
Phil.
**
This email and any attachments may be confidential and the subject of
legal professional
Found the answer open all ports with binary switch !!
-Original Message-
From: Hayes Philip [mailto:[EMAIL PROTECTED]]
Sent: 14 December 2000 12:11
To: 'Rebol List Server'
Subject: [REBOL] LF converted to CRLF when I append string to port ?
When I perform the following:
append port
Enclosed are 2 sample scripts that show how generic SNMP v1 traps can be
issued.
I would welcome any code critique.
Phil Hayes.
PS Please feel free to distribute these scripts under GPL.
**
This email and any attachments
#!/apps/rebol/rebol -qw
REBOL [
Title: "SNMP v1 Trap model"
Date: 30-Oct-2000
Author: "Phil Hayes"
Version: 0.1
Owner: "The Cnut Archetype Ltd - www.cnut.dircon.co.uk"
Rights: "Copyright (C) The Cnut Archetype Ltd 2000"
Purpose: {
This script allows SNMP v1 MIB II traps to be built using
#!/apps/rebol/rebol -qw
REBOL [
Title: "Send SNMP v1 Trap"
Date: 30-Oct-2000
Author: "Phil Hayes"
Version: 0.1
Owner: "The Cnut Archetype Ltd - www.cnut.dircon.co.uk"
Rights: "Copyright (C) The Cnut Archetype Ltd 2000"
Purpose: {
This script shows how SNMP v1 MIB II traps can be