lo::Server(3)
π lo::Server(3) π
okay bestie, gather round, we're reading a manual page. yes, a real one. it's from the Library Functions Manual and it's all about lo::Server, which is a whole class that's a proxy for lo_server. it's giving "networking but make it C++" and honestly? slay. π
β¨ NAME β¨
lo::Server β the class that reps a local OSC server, and acts as a cute little proxy for lo_server. π«Ά
π SYNOPSIS π
first things first, you gotta pull it in:
#include <lo_cpp.h>
π
fun fact: it's inherited by lo::ServerThread. family business, iykyk.
π Public Member Functions
Server (lo_server s)
template<typename E> Server (const num_string_type &port, E &&e)
template<typename E> Server (const num_string_type &port, int proto, E &&e=0)
template<typename E> Server (const string_type &group, const num_string_type &port, const string_type &iface=0, const string_type &ip=0, E &&e=0)
Server (const num_string_type &port, lo_err_handler err_h=0)
Server (const num_string_type &port, int proto, lo_err_handler err_h=0)
Server (const string_type &group, const num_string_type &port, const string_type &iface='', const string_type &ip='', lo_err_handler err_h=0)
virtual ~Server ()
Method add_method (const string_type &path, const string_type &types, lo_method_handler h, void *data) const
LO_ADD_METHOD ((const char *, const char *, lo_arg **, int),((char *) 0,(char *) 0,(lo_arg **) 0,(int) 0),(path, types, argv, argc))
LO_ADD_METHOD ((const char *, lo_arg **, int),((char *) 0,(lo_arg **) 0,(int) 0),(types, argv, argc))
π¦ Detailed Description π¦
lo::Server = the class representing a local OSC server, and it's a proxy for lo_server. that's the whole vibe. it's the glow-up wrapper. π
π for the record: defined at line 499 of file lo_cpp.h.
πΈ Constructor & Destructor Documentation πΈ
okay this is the part where we meet all the constructors. there are... a lot. and each one is iconic in its own way. let's go one by one, no skipping, we don't do that here. π
π« lo::Server::Server (lo_server s) [inline]
the constructor. that's it, that's the description. plain, simple, confident. main character energy honestly.
- defined at line 503 of file
lo_cpp.h. - referenced by
Server(),Server(),Server(),Server(),Server(), andServer(). (yes six times. it references itself. obsessed with itself, as it should be. π)
π« template<typename E> lo::Server::Server (const num_string_type & port, E && e) [inline]
a constructor that takes an error handler. lowkey essential.
- defined at line 507 of file
lo_cpp.h. - references
lo_server_new(), andServer().
π« template<typename E> lo::Server::Server (const num_string_type & port, int proto, E && e = 0) [inline]
this one takes a port number and an error handler. two things. very generous.
- defined at line 524 of file
lo_cpp.h. - references
lo_server_new_with_proto(), andServer().
π« template<typename E> lo::Server::Server (const string_type & group, const num_string_type & port, const string_type & iface = 0, const string_type & ip = 0, E && e = 0) [inline]
the multicast girlie π β takes a multicast group, a port number, an interface identifier or IP, and an error handler. that's four whole things. ate.
- defined at line 542 of file
lo_cpp.h. - references
lo_server_new_multicast_iface(), andServer().
π« lo::Server::Server (const num_string_type & port, lo_err_handler err_h = 0) [inline]
constructor taking a port number and error handler. the classics. never gets old. β
- defined at line 565 of file
lo_cpp.h. - references
lo_server_new(), andServer().
π« lo::Server::Server (const num_string_type & port, int proto, lo_err_handler err_h = 0) [inline]
constructor taking a port number, a protocol, and an error handler. three for three, no notes. π₯
- defined at line 569 of file
lo_cpp.h. - references
lo_server_new_with_proto(), andServer().
π« lo::Server::Server (const string_type & group, const num_string_type & port, const string_type & iface = '', const string_type & ip = '', lo_err_handler err_h = 0) [inline]
the multicast one again but now with a real error handler β takes a multicast group, a port number, an interface identifier or IP, and an error handler. π
- defined at line 575 of file
lo_cpp.h. - references
lo_server_new_multicast(),lo_server_new_multicast_iface(), andServer().
π« virtual lo::Server::~Server () [inline], [virtual]
the destructor. it's the goodbye. π but it's a virtual goodbye so it does the right thing even when you're pointing at it through a base class. classy.
- defined at line 584 of file
lo_cpp.h. - references
lo_server_free().
π§ Member Function Documentation π§
β¨ Method lo::Server::add_method (const string_type & path, const string_type & types, lo_method_handler h, void * data) const [inline]
adds a method to handle a given path and type, with a handler and a user data pointer. basically: "hey, when this path + type shows up, run this." π
- defined at line 593 of file
lo_cpp.h.
β¨ lo::Server::LO_ADD_METHOD ((const char *, const char *, lo_arg **, int) , ((char *) 0,(char *) 0,(lo_arg **) 0,(int) 0) , (path, types, argv, argc) )
adds a method to handle a given path and type, with a handler taking (argv, argc), and user data. π
β¨ lo::Server::LO_ADD_METHOD ((const char *, lo_arg **, int) , ((char *) 0,(lo_arg **) 0,(int) 0) , (types, argv, argc) )
adds a method to handle a given path and type, with a handler taking (types, argv, argc), and user data. π¦
π Author π
generated automatically by Doxygen for liblo, straight from the source code. the robots did this one. no cap. π€β¨
π«Ά and that's the whole page bestie, you made it, so proud of you.
liblo Β· Version 0.34 Β· lo::Server(3) β mwah, go forth and server. π
πΈ
π¦ where this page comes from
- fedora 44: liblo-devel 0.34-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: liblo-devel 0.34-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms