| Class | Irc::IrcSocket |
| In: |
lib/rbot/ircsocket.rb
|
| Parent: | Object |
wrapped TCPSocket for communication with the server. emulates a subset of TCPSocket functionality
| bytes_per | [R] | byterate components |
| bytes_received | [R] | total number of bytes received from the irc server |
| bytes_sent | [R] | total number of bytes sent to the irc server |
| lines_received | [R] | total number of lines received from the irc server |
| lines_sent | [R] | total number of lines sent to the irc server |
| seconds_per | [R] | |
| sendq_burst | [R] | max lines to burst |
| sendq_delay | [R] | delay between lines sent |
| throttle_bytes | [R] | accumulator for the throttle |
| server: | server to connect to |
| port: | IRCd port |
| host: | optional local host to bind to (ruby 1.7+ required) |
create a new IrcSocket
used to send lines to the remote IRCd by skipping the queue message: IRC message to send it should only be used for stuff that *must not* be queued, i.e. the initial PASS, NICK and USER command or the final QUIT message