Package proton :: Class Sender
[frames] | no frames]

Class Sender

source code


A link over which messages are sent.

Instance Methods
 
offered(self, n) source code
 
stream(self, data)
Send specified data as part of the current delivery
source code
 
send(self, obj, tag=None)
Send specified object over this sender; the object is expected to have a send() method on it that takes the sender and an optional tag as arguments.
source code
 
delivery_tag(self) source code

Inherited from Link: __init__, advance, available, close, connection, credit, current, delivery, detach, drained, free, is_receiver, is_sender, name, next, open, queued, remote_max_message_size, remote_rcv_settle_mode, remote_snd_settle_mode, remote_source, remote_target, session, source, state, target, unsettled

Inherited from wrapper.Wrapper: __del__, __delattr__, __eq__, __getattr__, __hash__, __ne__, __repr__, __setattr__

Inherited from Endpoint: remote_condition, transport

Static Methods

Inherited from Link: wrap

Class Variables

Inherited from Link: RCV_FIRST, RCV_SECOND, SND_MIXED, SND_SETTLED, SND_UNSETTLED, drain_mode, max_message_size, rcv_settle_mode, snd_settle_mode

Inherited from Endpoint: LOCAL_ACTIVE, LOCAL_CLOSED, LOCAL_UNINIT, REMOTE_ACTIVE, REMOTE_CLOSED, REMOTE_UNINIT, handler

Method Details

stream(self, data)

source code 

Send specified data as part of the current delivery

Parameters:
  • data (binary) - data to send

send(self, obj, tag=None)

source code 

Send specified object over this sender; the object is expected to have a send() method on it that takes the sender and an optional tag as arguments.

Where the object is a Message, this will send the message over this link, creating a new delivery for the purpose.