Previous | Up | Next |
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.Parameters
Chn _openchannel ( S _address_ S _script_ Env _environment_ )
Return value
_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.
new channel. nil if an error occured (probably a bad formated _address_)