Lionel Cons > Net-STOMP-Client-2.1 > Net::STOMP::Client::IO

Download:
Net-STOMP-Client-2.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 2.1   Source   Latest Release: Net-STOMP-Client-2.2

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

syntax highlighting: