Allolib  1.0
C++ Components For Interactive Multimedia
al::osc::Send Class Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/protocol/al_OSC.hpp>

Inheritance diagram for al::osc::Send:
al::osc::Packet

Public Member Functions

 Send (int size)
 
 Send (uint16_t port, const char *address="localhost", al_sec timeout=0, int size=1024)
 
bool open (uint16_t port, const char *address)
 
const std::string & address () const
 
uint16_t port () const
 
size_t send ()
 Send and clear current packet contents.
 
size_t send (const Packet &p)
 Send a packet.
 
size_t send (const std::string &addr)
 Send zero argument message immediately.
 
template<class A >
size_t send (const std::string &addr, const A &a)
 Send one argument message immediately.
 
template<class A , class B >
size_t send (const std::string &addr, const A &a, const B &b)
 Send two argument message immediately.
 
template<class A , class B , class C >
size_t send (const std::string &addr, const A &a, const B &b, const C &c)
 Send three argument message immediately.
 
template<class A , class B , class C , class D >
size_t send (const std::string &addr, const A &a, const B &b, const C &c, const D &d)
 Send four argument message immediately.
 
template<class A , class B , class C , class D , class E >
size_t send (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e)
 Send five argument message immediately.
 
template<class A , class B , class C , class D , class E , class F >
size_t send (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f)
 Send six argument message immediately.
 
template<class A , class B , class C , class D , class E , class F , class G >
size_t send (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g)
 Send seven argument message immediately.
 
template<class A , class B , class C , class D , class E , class F , class G , class H >
size_t send (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h)
 Send eight argument message immediately.
 
const char * data () const
 Get raw packet data.
 
bool isMessage () const
 Whether packet is a message.
 
bool isBundle () const
 Whether packet is a bundle.
 
void printRaw () const
 Pretty-print raw packet bytes.
 
size_t size () const
 Get number of bytes of current packet data.
 
PacketbeginBundle (TimeTag timeTag=1)
 Begin a new bundle.
 
PacketendBundle ()
 End bundle.
 
PacketbeginMessage (const std::string &addressPattern)
 Start a new message.
 
PacketendMessage ()
 End message.
 
PacketaddMessage (const std::string &addr)
 Add zero argument message.
 
template<class A >
PacketaddMessage (const std::string &addr, const A &a)
 Add one argument message.
 
template<class A , class B >
PacketaddMessage (const std::string &addr, const A &a, const B &b)
 Add two argument message.
 
template<class A , class B , class C >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c)
 Add three argument message.
 
template<class A , class B , class C , class D >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d)
 Add four argument message.
 
template<class A , class B , class C , class D , class E >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e)
 Add five argument message.
 
template<class A , class B , class C , class D , class E , class F >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f)
 Add six argument message.
 
template<class A , class B , class C , class D , class E , class F , class G >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g)
 Add seven argument message.
 
template<class A , class B , class C , class D , class E , class F , class G , class H >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h)
 Add eight argument message.
 
Packetoperator<< (int v)
 Add integer to message.
 
Packetoperator<< (unsigned v)
 Add integer to message.
 
Packetoperator<< (float v)
 Add float to message.
 
Packetoperator<< (double v)
 Add double to message.
 
Packetoperator<< (char v)
 Add char to message.
 
Packetoperator<< (const char *v)
 Add C-string to message.
 
Packetoperator<< (const std::string &v)
 Add string to message.
 
Packetoperator<< (const Blob &v)
 Add Blob to message.
 
Packetclear ()
 Clear current packet contents.
 

Protected Attributes

Impl * mImpl
 
std::vector< char > mData
 

Detailed Description

Socket for sending OSC packets

Definition at line 296 of file al_OSC.hpp.

Constructor & Destructor Documentation

◆ Send()

al::osc::Send::Send ( uint16_t  port,
const char *  address = "localhost",
al_sec  timeout = 0,
int  size = 1024 
)
Parameters
[in]portPort number (valid range is 0-65535)
[in]addressIP address
[in]timeout< 0: block forever; = 0: no blocking; > 0 block with timeout
[in]sizePacket buffer size

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