NAME

Net::STOMP::Client::IO - Input/Output support for Net::STOMP::Client

DESCRIPTION

This module provides Input/Output (I/O) support. It is used internally by Net::STOMP::Client and should not be directly used elsewhere.

It uses non-blocking I/O: the socket is in non-blocking mode and errors like EAGAIN or EWOULDBLOCK are trapped.

FUNCTIONS

This module provides the following internal methods:

new(SOCKET)

return a new Net::STOMP::Client::IO object (class method)

queue_data(DATA)

queue (append to the internal outgoing buffer) the given data (a binary string reference); return the length of DATA in bytes

send_data([OPTIONS])

send some queued data to the socket; return the total number of bytes written

receive_data([OPTIONS])

receive some data from the socket and put it in the internal incoming buffer; return the total number of bytes read

SEE ALSO

Net::STOMP::Client.

AUTHOR

Lionel Cons http://cern.ch/lionel.cons

Copyright (C) CERN 2010-2013