\hypertarget{BMdns_8cpp}{}\section{B\+Mdns.\+cpp File Reference}
\label{BMdns_8cpp}\index{BMdns.cpp@{BMdns.cpp}}
{\ttfamily \#include $<$B\+Mdns.\+h$>$}\newline
{\ttfamily \#include $<$B\+Debug.\+h$>$}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$sys/ioctl.\+h$>$}\newline
{\ttfamily \#include $<$sys/socket.\+h$>$}\newline
{\ttfamily \#include $<$arpa/inet.\+h$>$}\newline
{\ttfamily \#include $<$netdb.\+h$>$}\newline
{\ttfamily \#include $<$net/if.\+h$>$}\newline
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{BMdns_8cpp_a76d4fdde1df4c42c1d1fe9ef84c9cf03}{B\+D\+E\+B\+U\+G\+L1}}~0
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9}{Mdns\+Record\+Type}} \{ \newline
\mbox{\hyperlink{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9a9dc919c2522dba980d7e5b93575bf87b}{M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+I\+G\+N\+O\+RE}} = 0, 
\mbox{\hyperlink{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9ad811897dbc830b8b9b959472999c605c}{M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+A}} = 1, 
\mbox{\hyperlink{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9af6e08040c5c8439fd0090bf01a701348}{M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+P\+TR}} = 12, 
\mbox{\hyperlink{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9ac07ca4f9ccf9296b2cb5ec8e5241c5f7}{M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+T\+XT}} = 16, 
\newline
\mbox{\hyperlink{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9aabb09f4e829bb77542ed10b753056843}{M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+A\+A\+AA}} = 28, 
\mbox{\hyperlink{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9a9036837e429aa54daed2a35ebacd1e27}{M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+S\+RV}} = 33
 \}
\item 
enum \mbox{\hyperlink{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253}{Mdns\+Entry\+Type}} \{ \mbox{\hyperlink{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253ae0304e854ab980bc4a342af305fc9193}{M\+D\+N\+S\+\_\+\+E\+N\+T\+R\+Y\+T\+Y\+P\+E\+\_\+\+A\+N\+S\+W\+ER}} = 1, 
\mbox{\hyperlink{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253ae626952e2822108f31cd24a85b786e26}{M\+D\+N\+S\+\_\+\+E\+N\+T\+R\+Y\+T\+Y\+P\+E\+\_\+\+A\+U\+T\+H\+O\+R\+I\+TY}} = 2, 
\mbox{\hyperlink{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253a8cbc6f5dd6bcee2303aa52a4190c34c2}{M\+D\+N\+S\+\_\+\+E\+N\+T\+R\+Y\+T\+Y\+P\+E\+\_\+\+A\+D\+D\+I\+T\+I\+O\+N\+AL}} = 3
 \}
\item 
enum \mbox{\hyperlink{BMdns_8cpp_a28dede1f6ab695a6f344dadf7e0979fb}{Mdns\+Class}} \{ \mbox{\hyperlink{BMdns_8cpp_a28dede1f6ab695a6f344dadf7e0979fbaebd9c4f3a3d825eadf45664e6a54fbe9}{M\+D\+N\+S\+\_\+\+C\+L\+A\+S\+S\+\_\+\+IN}} = 1
 \}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static int \mbox{\hyperlink{BMdns_8cpp_a16e56fc464b8223cc7b7f6c9af51074e}{mdns\+\_\+write\+\_\+string}} (\textbf{ B\+U\+Int8} $\ast$buffer, \textbf{ B\+U\+Int8} $\ast$p, \textbf{ B\+String} str)
\item 
static int \mbox{\hyperlink{BMdns_8cpp_adb3d72492b8db8e474eb0190879a823e}{mdns\+\_\+read\+\_\+string}} (void $\ast$buffer, \textbf{ B\+U\+Int8} $\ast$p, \textbf{ B\+String} \&str)
\item 
static int \mbox{\hyperlink{BMdns_8cpp_a01cbdea23d13929e1d4bd93316b3edff}{mdns\+\_\+read\+\_\+strings}} (void $\ast$buffer, \textbf{ B\+U\+Int8} $\ast$p, \textbf{ B\+String} \&str)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\mbox{\Hypertarget{BMdns_8cpp_a76d4fdde1df4c42c1d1fe9ef84c9cf03}\label{BMdns_8cpp_a76d4fdde1df4c42c1d1fe9ef84c9cf03}} 
\index{BMdns.cpp@{BMdns.cpp}!BDEBUGL1@{BDEBUGL1}}
\index{BDEBUGL1@{BDEBUGL1}!BMdns.cpp@{BMdns.cpp}}
\subsubsection{\texorpdfstring{BDEBUGL1}{BDEBUGL1}}
{\footnotesize\ttfamily \#define B\+D\+E\+B\+U\+G\+L1~0}



\subsection{Enumeration Type Documentation}
\mbox{\Hypertarget{BMdns_8cpp_a28dede1f6ab695a6f344dadf7e0979fb}\label{BMdns_8cpp_a28dede1f6ab695a6f344dadf7e0979fb}} 
\index{BMdns.cpp@{BMdns.cpp}!MdnsClass@{MdnsClass}}
\index{MdnsClass@{MdnsClass}!BMdns.cpp@{BMdns.cpp}}
\subsubsection{\texorpdfstring{MdnsClass}{MdnsClass}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{BMdns_8cpp_a28dede1f6ab695a6f344dadf7e0979fb}{Mdns\+Class}}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_CLASS\_IN@{MDNS\_CLASS\_IN}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_CLASS\_IN@{MDNS\_CLASS\_IN}}}\mbox{\Hypertarget{BMdns_8cpp_a28dede1f6ab695a6f344dadf7e0979fbaebd9c4f3a3d825eadf45664e6a54fbe9}\label{BMdns_8cpp_a28dede1f6ab695a6f344dadf7e0979fbaebd9c4f3a3d825eadf45664e6a54fbe9}} 
M\+D\+N\+S\+\_\+\+C\+L\+A\+S\+S\+\_\+\+IN&\\
\hline

\end{DoxyEnumFields}
\mbox{\Hypertarget{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253}\label{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253}} 
\index{BMdns.cpp@{BMdns.cpp}!MdnsEntryType@{MdnsEntryType}}
\index{MdnsEntryType@{MdnsEntryType}!BMdns.cpp@{BMdns.cpp}}
\subsubsection{\texorpdfstring{MdnsEntryType}{MdnsEntryType}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253}{Mdns\+Entry\+Type}}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_ENTRYTYPE\_ANSWER@{MDNS\_ENTRYTYPE\_ANSWER}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_ENTRYTYPE\_ANSWER@{MDNS\_ENTRYTYPE\_ANSWER}}}\mbox{\Hypertarget{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253ae0304e854ab980bc4a342af305fc9193}\label{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253ae0304e854ab980bc4a342af305fc9193}} 
M\+D\+N\+S\+\_\+\+E\+N\+T\+R\+Y\+T\+Y\+P\+E\+\_\+\+A\+N\+S\+W\+ER&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_ENTRYTYPE\_AUTHORITY@{MDNS\_ENTRYTYPE\_AUTHORITY}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_ENTRYTYPE\_AUTHORITY@{MDNS\_ENTRYTYPE\_AUTHORITY}}}\mbox{\Hypertarget{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253ae626952e2822108f31cd24a85b786e26}\label{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253ae626952e2822108f31cd24a85b786e26}} 
M\+D\+N\+S\+\_\+\+E\+N\+T\+R\+Y\+T\+Y\+P\+E\+\_\+\+A\+U\+T\+H\+O\+R\+I\+TY&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_ENTRYTYPE\_ADDITIONAL@{MDNS\_ENTRYTYPE\_ADDITIONAL}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_ENTRYTYPE\_ADDITIONAL@{MDNS\_ENTRYTYPE\_ADDITIONAL}}}\mbox{\Hypertarget{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253a8cbc6f5dd6bcee2303aa52a4190c34c2}\label{BMdns_8cpp_aa60a0125da63d678fa3f6258a1043253a8cbc6f5dd6bcee2303aa52a4190c34c2}} 
M\+D\+N\+S\+\_\+\+E\+N\+T\+R\+Y\+T\+Y\+P\+E\+\_\+\+A\+D\+D\+I\+T\+I\+O\+N\+AL&\\
\hline

\end{DoxyEnumFields}
\mbox{\Hypertarget{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9}\label{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9}} 
\index{BMdns.cpp@{BMdns.cpp}!MdnsRecordType@{MdnsRecordType}}
\index{MdnsRecordType@{MdnsRecordType}!BMdns.cpp@{BMdns.cpp}}
\subsubsection{\texorpdfstring{MdnsRecordType}{MdnsRecordType}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9}{Mdns\+Record\+Type}}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_RECORDTYPE\_IGNORE@{MDNS\_RECORDTYPE\_IGNORE}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_RECORDTYPE\_IGNORE@{MDNS\_RECORDTYPE\_IGNORE}}}\mbox{\Hypertarget{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9a9dc919c2522dba980d7e5b93575bf87b}\label{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9a9dc919c2522dba980d7e5b93575bf87b}} 
M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+I\+G\+N\+O\+RE&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_RECORDTYPE\_A@{MDNS\_RECORDTYPE\_A}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_RECORDTYPE\_A@{MDNS\_RECORDTYPE\_A}}}\mbox{\Hypertarget{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9ad811897dbc830b8b9b959472999c605c}\label{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9ad811897dbc830b8b9b959472999c605c}} 
M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+A&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_RECORDTYPE\_PTR@{MDNS\_RECORDTYPE\_PTR}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_RECORDTYPE\_PTR@{MDNS\_RECORDTYPE\_PTR}}}\mbox{\Hypertarget{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9af6e08040c5c8439fd0090bf01a701348}\label{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9af6e08040c5c8439fd0090bf01a701348}} 
M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+P\+TR&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_RECORDTYPE\_TXT@{MDNS\_RECORDTYPE\_TXT}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_RECORDTYPE\_TXT@{MDNS\_RECORDTYPE\_TXT}}}\mbox{\Hypertarget{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9ac07ca4f9ccf9296b2cb5ec8e5241c5f7}\label{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9ac07ca4f9ccf9296b2cb5ec8e5241c5f7}} 
M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+T\+XT&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_RECORDTYPE\_AAAA@{MDNS\_RECORDTYPE\_AAAA}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_RECORDTYPE\_AAAA@{MDNS\_RECORDTYPE\_AAAA}}}\mbox{\Hypertarget{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9aabb09f4e829bb77542ed10b753056843}\label{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9aabb09f4e829bb77542ed10b753056843}} 
M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+A\+A\+AA&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{MDNS\_RECORDTYPE\_SRV@{MDNS\_RECORDTYPE\_SRV}!BMdns.cpp@{BMdns.cpp}}\index{BMdns.cpp@{BMdns.cpp}!MDNS\_RECORDTYPE\_SRV@{MDNS\_RECORDTYPE\_SRV}}}\mbox{\Hypertarget{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9a9036837e429aa54daed2a35ebacd1e27}\label{BMdns_8cpp_a6bc018a36edc47a9a2c4c5077d1311a9a9036837e429aa54daed2a35ebacd1e27}} 
M\+D\+N\+S\+\_\+\+R\+E\+C\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+S\+RV&\\
\hline

\end{DoxyEnumFields}


\subsection{Function Documentation}
\mbox{\Hypertarget{BMdns_8cpp_adb3d72492b8db8e474eb0190879a823e}\label{BMdns_8cpp_adb3d72492b8db8e474eb0190879a823e}} 
\index{BMdns.cpp@{BMdns.cpp}!mdns\_read\_string@{mdns\_read\_string}}
\index{mdns\_read\_string@{mdns\_read\_string}!BMdns.cpp@{BMdns.cpp}}
\subsubsection{\texorpdfstring{mdns\_read\_string()}{mdns\_read\_string()}}
{\footnotesize\ttfamily static int mdns\+\_\+read\+\_\+string (\begin{DoxyParamCaption}\item[{void $\ast$}]{buffer,  }\item[{\textbf{ B\+U\+Int8} $\ast$}]{p,  }\item[{\textbf{ B\+String} \&}]{str }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}

\mbox{\Hypertarget{BMdns_8cpp_a01cbdea23d13929e1d4bd93316b3edff}\label{BMdns_8cpp_a01cbdea23d13929e1d4bd93316b3edff}} 
\index{BMdns.cpp@{BMdns.cpp}!mdns\_read\_strings@{mdns\_read\_strings}}
\index{mdns\_read\_strings@{mdns\_read\_strings}!BMdns.cpp@{BMdns.cpp}}
\subsubsection{\texorpdfstring{mdns\_read\_strings()}{mdns\_read\_strings()}}
{\footnotesize\ttfamily static int mdns\+\_\+read\+\_\+strings (\begin{DoxyParamCaption}\item[{void $\ast$}]{buffer,  }\item[{\textbf{ B\+U\+Int8} $\ast$}]{p,  }\item[{\textbf{ B\+String} \&}]{str }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}

\mbox{\Hypertarget{BMdns_8cpp_a16e56fc464b8223cc7b7f6c9af51074e}\label{BMdns_8cpp_a16e56fc464b8223cc7b7f6c9af51074e}} 
\index{BMdns.cpp@{BMdns.cpp}!mdns\_write\_string@{mdns\_write\_string}}
\index{mdns\_write\_string@{mdns\_write\_string}!BMdns.cpp@{BMdns.cpp}}
\subsubsection{\texorpdfstring{mdns\_write\_string()}{mdns\_write\_string()}}
{\footnotesize\ttfamily static int mdns\+\_\+write\+\_\+string (\begin{DoxyParamCaption}\item[{\textbf{ B\+U\+Int8} $\ast$}]{buffer,  }\item[{\textbf{ B\+U\+Int8} $\ast$}]{p,  }\item[{\textbf{ B\+String}}]{str }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}

