Previous Up Next

_openchannel
Create a new channel, which is Tcp-Ip connected (if the _address_ is not nil) or unplugged (if the _address_ is nil). The function returns immediatly, even if it is a connected channel : the connection process is asynchronous.

Chn _openchannel (
S _address_
S _script_
Env _environment_
)
Parameters

_address_
address of the distant server, with IP address --not name-- and port, such as '127.0.0.1:1234'. nil means an unplugged channel.
_script_
script to execute immediatly on this new channel.
_environment_
environment that is inherited by the channel. nil means the minimal environment.
Return value

new channel. nil if an error occured (probably a bad formated _address_)