\hypertarget{lo_8h}{
\section{lo.h File Reference}
\label{lo_8h}\index{lo.h@{lo.h}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} \hyperlink{group__liblo_gae5af61a02ab08871d3ea070c8f770cfe}{lo\_\-address\_\-new} (const char $\ast$host, const char $\ast$port)
\begin{DoxyCompactList}\small\item\em Declare an OSC destination, given IP address and port number. Same as \hyperlink{group__liblo_gaceb4b068bc48c2b075e790910cab3075}{lo\_\-address\_\-new\_\-with\_\-proto()}, but using UDP. \item\end{DoxyCompactList}\item 
\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} \hyperlink{group__liblo_gaceb4b068bc48c2b075e790910cab3075}{lo\_\-address\_\-new\_\-with\_\-proto} (int proto, const char $\ast$host, const char $\ast$port)
\begin{DoxyCompactList}\small\item\em Declare an OSC destination, given IP address and port number, specifying protocol. \item\end{DoxyCompactList}\item 
\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} \hyperlink{group__liblo_ga1af2cb3c80393cba838f64dfcdc35620}{lo\_\-address\_\-new\_\-from\_\-url} (const char $\ast$url)
\begin{DoxyCompactList}\small\item\em Create a lo\_\-address object from an OSC URL. \item\end{DoxyCompactList}\item 
void \hyperlink{group__liblo_ga82b9a2d1d30214114eb5298f43aebac5}{lo\_\-address\_\-free} (\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} t)
\begin{DoxyCompactList}\small\item\em Free the memory used by the lo\_\-address object. \item\end{DoxyCompactList}\item 
void \hyperlink{group__liblo_gacd72097b92411db148844d89071fd281}{lo\_\-address\_\-set\_\-ttl} (\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} t, int ttl)
\begin{DoxyCompactList}\small\item\em Set the Time-\/to-\/Live value for a given target address. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_ga3652ba694ba3c153dc96917e7321131c}{lo\_\-address\_\-get\_\-ttl} (\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} t)
\begin{DoxyCompactList}\small\item\em Get the Time-\/to-\/Live value for a given target address. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_gafa4253874f97c2c16254ac57d2b7c987}{lo\_\-send} (\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} targ, const char $\ast$path, const char $\ast$type,...)
\begin{DoxyCompactList}\small\item\em Send a OSC formatted message to the address specified. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_gaa4a314562b09e2fd00749a5d0b4d0955}{lo\_\-send\_\-from} (\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} targ, \hyperlink{lo__types_8h_a59067bf50cf8abb4371da6f03c9036c9}{lo\_\-server} from, \hyperlink{structlo__timetag}{lo\_\-timetag} ts, const char $\ast$path, const char $\ast$type,...)
\begin{DoxyCompactList}\small\item\em Send a OSC formatted message to the address specified, from the same socket as the specificied server. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_ga42ec6437789c7516c5b7909d8504751a}{lo\_\-send\_\-timestamped} (\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} targ, \hyperlink{structlo__timetag}{lo\_\-timetag} ts, const char $\ast$path, const char $\ast$type,...)
\begin{DoxyCompactList}\small\item\em Send a OSC formatted message to the address specified, scheduled to be dispatch at some time in the future. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_ga407e1694a2ec58ee5b90c6390e0a5d53}{lo\_\-address\_\-errno} (\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} a)
\begin{DoxyCompactList}\small\item\em Return the error number from the last failed \hyperlink{group__liblo_gafa4253874f97c2c16254ac57d2b7c987}{lo\_\-send()} or \hyperlink{group__liblo_gae5af61a02ab08871d3ea070c8f770cfe}{lo\_\-address\_\-new()} call. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__liblo_gace321bfb9e529d8640e96e894db5400c}{lo\_\-address\_\-errstr} (\hyperlink{lo__types_8h_abf9b53223467de596b89e1377b0f3f3d}{lo\_\-address} a)
\begin{DoxyCompactList}\small\item\em Return the error string from the last failed \hyperlink{group__liblo_gafa4253874f97c2c16254ac57d2b7c987}{lo\_\-send()} or \hyperlink{group__liblo_gae5af61a02ab08871d3ea070c8f770cfe}{lo\_\-address\_\-new()} call. \item\end{DoxyCompactList}\item 
\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} \hyperlink{group__liblo_gabe3e0c31189adfd7624de6c507b610ba}{lo\_\-server\_\-thread\_\-new} (const char $\ast$port, \hyperlink{lo__types_8h_aa5d2e4aa0ff9d4459fcc76e7ed5839fc}{lo\_\-err\_\-handler} err\_\-h)
\begin{DoxyCompactList}\small\item\em Create a new server thread to handle incoming OSC messages. \item\end{DoxyCompactList}\item 
\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} \hyperlink{group__liblo_ga0fa9fcae4eabe09847d46b134dc33aa4}{lo\_\-server\_\-thread\_\-new\_\-multicast} (const char $\ast$group, const char $\ast$port, \hyperlink{lo__types_8h_aa5d2e4aa0ff9d4459fcc76e7ed5839fc}{lo\_\-err\_\-handler} err\_\-h)
\begin{DoxyCompactList}\small\item\em Create a new server thread to handle incoming OSC messages, and join a UDP multicast group. \item\end{DoxyCompactList}\item 
\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} \hyperlink{group__liblo_ga6713cedfb0b2c4f066ec8a19366bf095}{lo\_\-server\_\-thread\_\-new\_\-with\_\-proto} (const char $\ast$port, int proto, \hyperlink{lo__types_8h_aa5d2e4aa0ff9d4459fcc76e7ed5839fc}{lo\_\-err\_\-handler} err\_\-h)
\begin{DoxyCompactList}\small\item\em Create a new server thread to handle incoming OSC messages, specifying protocol. \item\end{DoxyCompactList}\item 
void \hyperlink{group__liblo_gad72be3f2a81b9583ad69dd007080c0e5}{lo\_\-server\_\-thread\_\-free} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st)
\begin{DoxyCompactList}\small\item\em Free memory taken by a server thread. \item\end{DoxyCompactList}\item 
\hyperlink{lo__types_8h_a66faedf5da13231d8c0166870477dce5}{lo\_\-method} \hyperlink{group__liblo_gacff9c90a8efc400448276b2d20831010}{lo\_\-server\_\-thread\_\-add\_\-method} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st, const char $\ast$path, const char $\ast$typespec, \hyperlink{lo__types_8h_a3b1c86c0925d05e13b5438ce8fe80a6c}{lo\_\-method\_\-handler} h, void $\ast$user\_\-data)
\begin{DoxyCompactList}\small\item\em Add an OSC method to the specifed server thread. \item\end{DoxyCompactList}\item 
void \hyperlink{group__liblo_ga072edf53338bc807444c4b510643a828}{lo\_\-server\_\-thread\_\-del\_\-method} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st, const char $\ast$path, const char $\ast$typespec)
\begin{DoxyCompactList}\small\item\em Delete an OSC method from the specifed server thread. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_ga4b284c1b96d0354c5de4ff7ba5a44fbc}{lo\_\-server\_\-thread\_\-start} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st)
\begin{DoxyCompactList}\small\item\em Start the server thread. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_ga06992ac46b04e58cb77d7c519a578f57}{lo\_\-server\_\-thread\_\-stop} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st)
\begin{DoxyCompactList}\small\item\em Stop the server thread. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_ga22f4b18eeac41490647ab9fe2333f933}{lo\_\-server\_\-thread\_\-get\_\-port} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st)
\begin{DoxyCompactList}\small\item\em Return the port number that the server thread has bound to. \item\end{DoxyCompactList}\item 
char $\ast$ \hyperlink{group__liblo_gac2805a7cbdd9465be4ca5101c569faf0}{lo\_\-server\_\-thread\_\-get\_\-url} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st)
\begin{DoxyCompactList}\small\item\em Return a URL describing the address of the server thread. \item\end{DoxyCompactList}\item 
\hyperlink{lo__types_8h_a59067bf50cf8abb4371da6f03c9036c9}{lo\_\-server} \hyperlink{group__liblo_gab968d51fa6e0d4bea92e3f84f5556161}{lo\_\-server\_\-thread\_\-get\_\-server} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st)
\begin{DoxyCompactList}\small\item\em Return the lo\_\-server for a lo\_\-server\_\-thread. \item\end{DoxyCompactList}\item 
int \hyperlink{group__liblo_ga7bc3d8361b65e3ad112a1da956d9114e}{lo\_\-server\_\-thread\_\-events\_\-pending} (\hyperlink{lo__types_8h_a09996ffb6bde21b8fb6106897b88feae}{lo\_\-server\_\-thread} st)
\begin{DoxyCompactList}\small\item\em Return true if there are scheduled events (eg. from bundles) waiting to be dispatched by the thread. \item\end{DoxyCompactList}\item 
\hyperlink{lo__types_8h_a8e780f8c09e3e4dd737fe249f11d16fc}{lo\_\-blob} \hyperlink{group__liblo_gaffb2348c70cb0e1214fd50bdc7574c39}{lo\_\-blob\_\-new} (int32\_\-t size, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Create a new OSC blob type. \item\end{DoxyCompactList}\item 
void \hyperlink{group__liblo_gaa46ef058cfdf14a16936c062ebac19b9}{lo\_\-blob\_\-free} (\hyperlink{lo__types_8h_a8e780f8c09e3e4dd737fe249f11d16fc}{lo\_\-blob} b)
\begin{DoxyCompactList}\small\item\em Free the memory taken by a blob. \item\end{DoxyCompactList}\item 
uint32\_\-t \hyperlink{group__liblo_gab6c9184f0a54f19319d8a6409487b466}{lo\_\-blob\_\-datasize} (\hyperlink{lo__types_8h_a8e780f8c09e3e4dd737fe249f11d16fc}{lo\_\-blob} b)
\begin{DoxyCompactList}\small\item\em Return the amount of valid data in a lo\_\-blob object. \item\end{DoxyCompactList}\item 
void $\ast$ \hyperlink{group__liblo_ga064e3435301e0df338b75023a7ebf38e}{lo\_\-blob\_\-dataptr} (\hyperlink{lo__types_8h_a8e780f8c09e3e4dd737fe249f11d16fc}{lo\_\-blob} b)
\begin{DoxyCompactList}\small\item\em Return a pointer to the start of the blob data to allow contents to be changed. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The liblo main headerfile and high-\/level API functions. 