Ports
[1/2] from: mattsmac::hotmail::com at: 8-Sep-2003 15:46
How do you pass a reference to a port to a function?
for instance:
remote: open tcp://:localhost:8001
result: process-port remote
process-port: func
[
dataport [port!]
]
[
function body
]
doesn't seem to work
_________________________________________________________________
Use custom emotions -- try MSN Messenger 6.0!
http://www.msnmessenger-download.com/tracking/reach_emoticon
[2/2] from: andrew:martin:colenso:school at: 9-Sep-2003 8:19
> How do you pass a reference to a port to a function?
> for instance:
<<quoted lines omitted: 10>>
>> remote: open tcp://:localhost:8001
>> type? remote
== port!
>> process-port: func [dataport [port!]][probe type? dataport]
>> process-port remote
port!
== port!
Hmmm, it seems to work for me. Perhaps you've accidentally reassigned
the value attached to the word 'remote?
Andrew J Martin
Attendance Officer &
Information Systems Trouble Shooter
Colenso High School
Arnold Street, Napier.
Tel: 64-6-8310180 ext 826
Fax: 64-6-8336759
http://colenso.net/scripts/Wiki.r?AJM
http://www.colenso.school.nz/
DISCLAIMER: Colenso High School and its Board of Trustees is not responsible (or legally
liable) for materials distributed to or acquired from user e-mail accounts. You can report
any
misuse of an e-mail account to our ICT Manager and the complaint will be investigated.
(Misuse can come in many forms, but can be viewed as any material sent/received that
indicate or suggest pornography, unethical or illegal solicitation, racism, sexism, inappropriate
language and/or other issues described in our Acceptable Use Policy.)
All outgoing messages are certified virus-free by McAfee GroupShield Exchange 5.10.285.0
Phone: +64 6 843 5095 or Fax: +64 6 833 6759 or E-mail: [postmaster--colenso--school--nz]
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted