Liam's BitchX Command Reference
BitchX scripting function $openserver()
- openserver
- Function
- $openserver()
- Usage
- $openserver(servername port [notify])
- Usage
- Supply a server name and a port (e.g. www.example.org and 80)
to open a TCP/IP connection to the named server on the named port.
You can supply an optional third argument to open the socket in
Notify mode, and in this case the SOCKET_NOTIFY_LIST hook will be called when data is available. This does not connect to an IRC server necessarily; any I/O over the connection is up to your script..
- Returns
- File descriptor or -1