- ************************************************************************
- * accessable methods:
- *
- * bool connect(String $host, int $port, String $bind = null, bool $ssl = false, int $blocking = 0)
- * connects the socket to $host:$port with the provided options
- *
- * void disconnect()
- * disconnects the socket
- *
- * bool connected()
- * returns the state of the socket (true if the socket is connected with the server)
- *
- * String[] recv()
- * tries to receive datas from the socket. Returns null or a array containing the lines received.
- * this method BLOCKS THE SCRIPT EXECUTION for the defined time if $blocking is set on connect().
- *
- * void send(String $line, String $newline = "\r\n")
- * tries to send datas through the socket.
- *
- * Array[] getTraffic()
- * returns an array containing the traffic the socket has received and sent.
- * index in = incoming (received) traffic count
- index out = outgoing (sent) traffic count