Sockets, servers and connections

closeserver closesocket connect convert iplong iptoname isconnected lastserver listen longip myservers nametoip [openserver] opensocket readserver readsocket server_version servername servernick servernum servers writeserver writesocket

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


previous: open next: openserver