| Class | Jabber::Protocol::Connection |
| In: |
lib/jabber4r/protocol.rb
|
| Parent: | Object |
| DISCONNECTED | = | 1 |
| CONNECTED | = | 2 |
| host | [R] | |
| input | [R] | |
| output | [R] | |
| port | [R] | |
| status | [R] |
Adds a filter block/proc to process received XML messages
| xml: | [String] The xml data to send |
| proc: | [Proc = nil] The optional proc |
| &block: | [Block] The optional block |
Returns if this connection is connected to a Jabber service
| return: | [Boolean] Connection status |
Returns if this connection is NOT connected to a Jabber service
| return: | [Boolean] Connection status |
Processes a received ParsedXMLElement and executes registered thread blocks and filters against it.
| element: | [ParsedXMLElement] The received element |
Sends XML data to the socket and (optionally) waits to process received data.
| xml: | [String] The xml data to send |
| proc: | [Proc = nil] The optional proc |
| &block: | [Block] The optional block |