some more links with some muticast info commands
http://www.google.com/custom?q=multicas ... BREBOL.net
http://www.rebol.com/docs/core25.html
Get-modes - Function Summary
--------------------------------------------------------------------------------
Summary:
Returns mode settings for a port.
Usage:
get-modes target modes
Arguments:
target - The target argument. (must be: file url block port)
modes - The modes argument. (must be: word block)
Description:
This function returns a block of special modes for file and network ports. GET-MODES takes a port and a block of modes that are being requested. It returns a block of mode names and their values (which can in turn be passed back to SET-MODES).
port: open/binary %test-file
probe get-modes port [direct binary]
[direct: false binary: true]
The example above shows that the port is opened for binary access but not for direct access.
A shortcut to query a single mode is to specify a single mode word as the argument:
probe get-modes port 'binary
true
In this case GET-MODES only returns the value directly, rather than a block.
Another form of GET-MODES takes a name-value block that is of the same format as SET-MODES.
probe get-modes port [direct: none binary: none]
[direct: false binary: true]
Here the values specified are ignored.
GET-MODES supports a few special modes which return a list of applicable modes for a port. They are: file-modes, copy-modes, network-modes, and port-modes. If any of these modes are specified in a GET-MODES request then the response contains a block of matching modes which are available on the current operating system (and it may vary between systems).
GET-MODES and SET-MODES functions have been added for file and network ports. Two new port actions are introduced:
get-modes Return current modes for an open port.
set-modes Change modes for an open port.
The get-modes function has the following syntax:
get-modes: native [
{Return mode settings for a port}
target [file! url! block! port!]
modes [word! block!]
]
The block being passed in consists of words defining which modes should be queried. Each word corresponds to one mode. get-modes returns a block which contains pairs of mode names and current mode settings.
Example:
>> get-modes someport [direct binary]
== [direct: true binary: false]
indicating that someport is opened in direct and non-binary (text) mode.