lo::Server(3)

πŸ“¦
version 0.34 Β· 3 versions
, in fedora 44

πŸ’– 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(), and Server(). (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(), and Server().

πŸ’« 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(), and Server().

πŸ’« 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(), and Server().

πŸ’« 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(), and Server().

πŸ’« 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(), and Server().

πŸ’« 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(), and Server().

πŸ’« 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