Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::netio::UDPSenderPort Class Reference

UDP sender. More...

#include <udp_sender_port.h>

Inheritance diagram for roc::netio::UDPSenderPort:
Collaboration diagram for roc::netio::UDPSenderPort:

Public Member Functions

 UDPSenderPort (ICloseHandler &close_handler, const packet::Address &, uv_loop_t &event_loop, core::IAllocator &allocator)
 Initialize. More...
 ~UDPSenderPort ()
 Destroy. More...
virtual const packet::Addressaddress () const
 Get bind address. More...
virtual bool open ()
 Open sender. More...
virtual void async_close ()
 Asynchronously close sender. More...
virtual void write (const packet::PacketPtr &)
 Write packet. More...
- Public Member Functions inherited from roc::netio::BasicPort
 BasicPort (core::IAllocator &)
 Initialize. More...
virtual ~BasicPort ()
 Destroy. More...
- Public Member Functions inherited from roc::core::RefCnt< BasicPort >
long getref () const
 Get reference counter. More...
void incref () const
 Increment reference counter. More...
void decref () const
 Decrement reference counter. More...
- Public Member Functions inherited from roc::core::ListNode
ListNodeDatalist_node_data () const
 Get list node data. More...

Detailed Description

UDP sender.

Definition at line 29 of file udp_sender_port.h.

Constructor & Destructor Documentation

roc::netio::UDPSenderPort::UDPSenderPort ( ICloseHandler close_handler,
const packet::Address ,
uv_loop_t &  event_loop,
core::IAllocator allocator 


roc::netio::UDPSenderPort::~UDPSenderPort ( )


Member Function Documentation

virtual const packet::Address& roc::netio::UDPSenderPort::address ( ) const

Get bind address.

Implements roc::netio::BasicPort.

virtual void roc::netio::UDPSenderPort::async_close ( )

Asynchronously close sender.

Implements roc::netio::BasicPort.

virtual bool roc::netio::UDPSenderPort::open ( )

Open sender.

Implements roc::netio::BasicPort.

virtual void roc::netio::UDPSenderPort::write ( const packet::PacketPtr )

Write packet.

May be called from any thread.

Implements roc::packet::IWriter.

The documentation for this class was generated from the following file: