ports and layout
[1/5] from: fantam:mailandnews at: 28-Jul-2001 21:30
Hello all,
I have a layout with buttons that in turn launch functions which
involve internet activity.
As long as there is internet activity, gui events are blocked. I
browsed the list archive and found many messages related to this,
but I'm still confused.
Do I have to use 'dispatch on network and gui ports?
Should I wait for next rebol release with async feature?
By the way, Allen Kamp's "View Peer Chat Demo" that addresses these
issues seems broken in current /View:
REBOL [
Title: "View Peer Chat Demo"
Author: "Allen Kamp"
Purpose: "Simple peer-to-peer chat in View"
status: "prototype"
]
....
** Script Error: Out of range or past end
** Where: func [/local event][
event: first event-port
if event/type = 'close [quit]
do event
]
** Near: event: first event-port
if event/type
>>
Thanks in advance, fantam
[2/5] from: carl:cybercraft at: 30-Jul-2001 0:31
On 29-Jul-01, Fantam wrote:
> Hello all,
> I have a layout with buttons that in turn launch functions which
> involve internet activity.
> As long as there is internet activity, gui events are blocked. I
> browsed the list archive and found many messages related to this,
> but I'm still confused.
So am I. (: However, read-net will allow you to read files from the
Net while leaving your GUI active, so have a look at it...
>> ? read-net
USAGE:
READ-NET url /progress callback
DESCRIPTION:
Read a file from the net (web). Update progress bar. Allow abort.
READ-NET is a function value.
ARGUMENTS:
url -- (Type: url)
REFINEMENTS:
/progress
callback -- Call func [total bytes] during transfer. Return
true. (Type: any)
> Do I have to use 'dispatch on network and gui ports?
> Should I wait for next rebol release with async feature?
<<quoted lines omitted: 17>>
>>>
> Thanks in advance, fantam
--
Carl Read
[carl--cybercraft--co--nz]
[3/5] from: ptretter:charter at: 29-Jul-2001 12:29
I had that problem when I wrote an eggdrop clone awhile back. I had the
problem when I was working with dcc ports. I solved it with the no-wait
refinement.
open/direct/no-wait
Paul Tretter
[4/5] from: fantam:mailandnews at: 30-Jul-2001 3:32
> So am I. (: However, read-net will allow you to read files from the
> Net while leaving your GUI active, so have a look at it...
Thanks, Carl. Unfortunately, this won't solve my problem, because I'm
opening a port with the 'ftp scheme.
[5/5] from: fantam::mailandnews::com at: 30-Jul-2001 3:35
> I had that problem when I wrote an eggdrop clone awhile back. I had the
> problem when I was working with dcc ports. I solved it with the no-wait
> refinement.
> open/direct/no-wait
Thanks, Paul. Same thing here. I'm not sure this will work with the
ftp scheme. I'll give it a try and let you know (unless someone
confirms it won't work).
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted