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?
Maarten,
Did you get forking to work?
Phil.
**
This email and any attachments may be confidential and the subject of
legal professional privilege. Any disclosure, use, storage or copying
of this email without the consent of
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 ] ) ) [
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,
>
>
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 multisess
Can you expand upon this ?
Particularly 'which literal words'
-Original Message-
From: Paul Tretter [mailto:[EMAIL PROTECTED]]
Sent: 05 January 2001 03:08
To: [EMAIL PROTECTED]
Subject: [REBOL] Advanced port stuff
I know I may not get an answer to this unless it falls on some real REB
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:
a
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
#!/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 generated
#!/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
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
Why ?
-Original Message-
From: Holger Kruse [mailto:[EMAIL PROTECTED]]
Sent: 19 October 2000 15:14
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: UDP Networking (fwd)
On Thu, Oct 19, 2000 at 02:16:25PM +0100, Hayes Philip wrote:
> Holger,
>
> I'm running 2.4.37.10.1
Holger,
I'm running 2.4.37.10.1 on Solaris 2.6
when I run this ...
#
buffer: make string! 1000
listen-port: open/binary/direct udp://:
forever [
wait listen-port
read-io listen-port buffer 1000
print buffer
print listen-port/remote-ip
clear buffer
13 matches
Mail list logo