\section{liblnp.h File Reference}
\label{liblnp_8h}\index{liblnp.h@{liblnp.h}}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf LNP\_\-DISCARD\_\-WHILE\_\-TX}~1
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef void($\ast$ {\bf lnp\_\-integrity\_\-handler\_\-t} )(const unsigned char $\ast$, unsigned char)
\item 
typedef void($\ast$ {\bf lnp\_\-addressing\_\-handler\_\-t} )(const unsigned char $\ast$, unsigned char, unsigned char)
\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum {\bf lnp\_\-init\_\-result} \{ {\bf INIT\_\-OK}, 
{\bf INIT\_\-BAD\_\-PARAM}, 
{\bf INIT\_\-ERROR}
 \}
\item 
enum {\bf lnp\_\-tx\_\-result} \{ {\bf TX\_\-SUCCESS}, 
{\bf TX\_\-FAILURE}, 
{\bf TX\_\-ERROR}
 \}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf lnp\_\-init\_\-com} ()
\item 
{\bf lnp\_\-init\_\-result} {\bf lnp\_\-init} (char $\ast$tcp\_\-hostname, unsigned short tcp\_\-port, unsigned char lnp\_\-address, unsigned char lnp\_\-mask, int flags)
\item 
bool {\bf lnp\_\-test} (void)
\item 
void {\bf lnp\_\-shutdown} (void)
\item 
void {\bf lnp\_\-integrity\_\-set\_\-handler} ({\bf lnp\_\-integrity\_\-handler\_\-t} handler)
\item 
void {\bf lnp\_\-addressing\_\-set\_\-handler} (unsigned char port, {\bf lnp\_\-addressing\_\-handler\_\-t} handler)
\item 
{\bf lnp\_\-tx\_\-result} {\bf lnp\_\-integrity\_\-write} (const unsigned char $\ast$data, unsigned char length)
\item 
{\bf lnp\_\-tx\_\-result} {\bf lnp\_\-addressing\_\-write} (const unsigned char $\ast$data, unsigned char length, unsigned char dest, unsigned char srcport)
\item 
void {\bf block\_\-rcv} (void)
\item 
void {\bf unblock\_\-rcv} (void)
\end{CompactItemize}


\subsection{Define Documentation}
\index{liblnp.h@{liblnp.h}!LNP_DISCARD_WHILE_TX@{LNP\_\-DISCARD\_\-WHILE\_\-TX}}
\index{LNP_DISCARD_WHILE_TX@{LNP\_\-DISCARD\_\-WHILE\_\-TX}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LNP\_\-DISCARD\_\-WHILE\_\-TX~1}\label{liblnp_8h_da632fc4c7b15527f4ad38496a851523}




Definition at line 27 of file liblnp.h.

\subsection{Typedef Documentation}
\index{liblnp.h@{liblnp.h}!lnp_addressing_handler_t@{lnp\_\-addressing\_\-handler\_\-t}}
\index{lnp_addressing_handler_t@{lnp\_\-addressing\_\-handler\_\-t}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf lnp\_\-addressing\_\-handler\_\-t})(const unsigned char $\ast$, unsigned char, unsigned char)}\label{liblnp_8h_658cbfb9a872d99399ea2d5ae87b9dfa}




Definition at line 19 of file liblnp.h.\index{liblnp.h@{liblnp.h}!lnp_integrity_handler_t@{lnp\_\-integrity\_\-handler\_\-t}}
\index{lnp_integrity_handler_t@{lnp\_\-integrity\_\-handler\_\-t}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf lnp\_\-integrity\_\-handler\_\-t})(const unsigned char $\ast$, unsigned char)}\label{liblnp_8h_ca61bdc2aff7faa9215ca598dec08311}




Definition at line 15 of file liblnp.h.

\subsection{Enumeration Type Documentation}
\index{liblnp.h@{liblnp.h}!lnp_init_result@{lnp\_\-init\_\-result}}
\index{lnp_init_result@{lnp\_\-init\_\-result}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf lnp\_\-init\_\-result}}\label{liblnp_8h_5946bfb5a5be626de0668f4e88bc5b13}


\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{INIT_OK@{INIT\_\-OK}!liblnp.h@{liblnp.h}}\index{liblnp.h@{liblnp.h}!INIT_OK@{INIT\_\-OK}}\item[{\em 
INIT\_\-OK\label{liblnp_8h_5946bfb5a5be626de0668f4e88bc5b1337c64a9258061db8cb6c5e8f3c68af5d}
}]\index{INIT_BAD_PARAM@{INIT\_\-BAD\_\-PARAM}!liblnp.h@{liblnp.h}}\index{liblnp.h@{liblnp.h}!INIT_BAD_PARAM@{INIT\_\-BAD\_\-PARAM}}\item[{\em 
INIT\_\-BAD\_\-PARAM\label{liblnp_8h_5946bfb5a5be626de0668f4e88bc5b13d16e06016f4f744d160834e0643a17e5}
}]\index{INIT_ERROR@{INIT\_\-ERROR}!liblnp.h@{liblnp.h}}\index{liblnp.h@{liblnp.h}!INIT_ERROR@{INIT\_\-ERROR}}\item[{\em 
INIT\_\-ERROR\label{liblnp_8h_5946bfb5a5be626de0668f4e88bc5b13a446325b29d7c917325acc576f0f0f45}
}]\end{description}
\end{Desc}



Definition at line 22 of file liblnp.h.\index{liblnp.h@{liblnp.h}!lnp_tx_result@{lnp\_\-tx\_\-result}}
\index{lnp_tx_result@{lnp\_\-tx\_\-result}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf lnp\_\-tx\_\-result}}\label{liblnp_8h_fe8f0d4332f02ce22eaebeea2e9274c8}


\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{TX_SUCCESS@{TX\_\-SUCCESS}!liblnp.h@{liblnp.h}}\index{liblnp.h@{liblnp.h}!TX_SUCCESS@{TX\_\-SUCCESS}}\item[{\em 
TX\_\-SUCCESS\label{liblnp_8h_fe8f0d4332f02ce22eaebeea2e9274c80414df3c5e313e8ffa5a62b83de4e632}
}]\index{TX_FAILURE@{TX\_\-FAILURE}!liblnp.h@{liblnp.h}}\index{liblnp.h@{liblnp.h}!TX_FAILURE@{TX\_\-FAILURE}}\item[{\em 
TX\_\-FAILURE\label{liblnp_8h_fe8f0d4332f02ce22eaebeea2e9274c8ceb0903155d271d0e9acc8f44977b3ba}
}]\index{TX_ERROR@{TX\_\-ERROR}!liblnp.h@{liblnp.h}}\index{liblnp.h@{liblnp.h}!TX_ERROR@{TX\_\-ERROR}}\item[{\em 
TX\_\-ERROR\label{liblnp_8h_fe8f0d4332f02ce22eaebeea2e9274c8ae441d024d64d59f65315abb3112bfec}
}]\end{description}
\end{Desc}



Definition at line 25 of file liblnp.h.

\subsection{Function Documentation}
\index{liblnp.h@{liblnp.h}!block_rcv@{block\_\-rcv}}
\index{block_rcv@{block\_\-rcv}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void block\_\-rcv (void)}\label{liblnp_8h_3656216ac5fb18f0d23bf9fbe408fe44}


\index{liblnp.h@{liblnp.h}!lnp_addressing_set_handler@{lnp\_\-addressing\_\-set\_\-handler}}
\index{lnp_addressing_set_handler@{lnp\_\-addressing\_\-set\_\-handler}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void lnp\_\-addressing\_\-set\_\-handler (unsigned char {\em port}, {\bf lnp\_\-addressing\_\-handler\_\-t} {\em handler})}\label{liblnp_8h_a51be5e31dcf22ec05289025c941db5f}




Definition at line 312 of file liblnp.cpp.\index{liblnp.h@{liblnp.h}!lnp_addressing_write@{lnp\_\-addressing\_\-write}}
\index{lnp_addressing_write@{lnp\_\-addressing\_\-write}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf lnp\_\-tx\_\-result} lnp\_\-addressing\_\-write (const unsigned char $\ast$ {\em data}, unsigned char {\em length}, unsigned char {\em dest}, unsigned char {\em srcport})}\label{liblnp_8h_6e548337170e77b577bf20a7ea29b9a0}




Definition at line 274 of file liblnp.cpp.\index{liblnp.h@{liblnp.h}!lnp_init@{lnp\_\-init}}
\index{lnp_init@{lnp\_\-init}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf lnp\_\-init\_\-result} lnp\_\-init (char $\ast$ {\em tcp\_\-hostname}, unsigned short {\em tcp\_\-port}, unsigned char {\em lnp\_\-address}, unsigned char {\em lnp\_\-mask}, int {\em flags})}\label{liblnp_8h_58ab3032ab44c66839d61df6959f87e3}




Definition at line 818 of file liblnp.cpp.

References DEFAULT\_\-LNP\_\-ADDR, DEFAULT\_\-LNP\_\-MASK, INIT\_\-BAD\_\-PARAM, INIT\_\-ERROR, INIT\_\-OK, lnp\_\-shutdown(), lnp\_\-test(), and LNPwait\-Header.

Referenced by init\_\-com().\index{liblnp.h@{liblnp.h}!lnp_init_com@{lnp\_\-init\_\-com}}
\index{lnp_init_com@{lnp\_\-init\_\-com}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int lnp\_\-init\_\-com ()}\label{liblnp_8h_d83554d0e793ec3ba4d410c7bc534cd4}


\index{liblnp.h@{liblnp.h}!lnp_integrity_set_handler@{lnp\_\-integrity\_\-set\_\-handler}}
\index{lnp_integrity_set_handler@{lnp\_\-integrity\_\-set\_\-handler}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void lnp\_\-integrity\_\-set\_\-handler ({\bf lnp\_\-integrity\_\-handler\_\-t} {\em handler})}\label{liblnp_8h_61742657139e498b9379dfd1bb36271e}




Definition at line 294 of file liblnp.cpp.

Referenced by init\_\-com().\index{liblnp.h@{liblnp.h}!lnp_integrity_write@{lnp\_\-integrity\_\-write}}
\index{lnp_integrity_write@{lnp\_\-integrity\_\-write}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf lnp\_\-tx\_\-result} lnp\_\-integrity\_\-write (const unsigned char $\ast$ {\em data}, unsigned char {\em length})}\label{liblnp_8h_ae649f5d602c773e8fc9ab2d6a4f4bda}




Definition at line 259 of file liblnp.cpp.\index{liblnp.h@{liblnp.h}!lnp_shutdown@{lnp\_\-shutdown}}
\index{lnp_shutdown@{lnp\_\-shutdown}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void lnp\_\-shutdown (void)}\label{liblnp_8h_080d0f7e5b9d37daf0a3b5dc753d7492}




Definition at line 170 of file liblnp.cpp.

References LNPwait\-Header.

Referenced by lnp\_\-init().\index{liblnp.h@{liblnp.h}!lnp_test@{lnp\_\-test}}
\index{lnp_test@{lnp\_\-test}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool lnp\_\-test (void)}\label{liblnp_8h_2341b68c4a7cef0fb17f8a275717b51f}




Definition at line 201 of file liblnp.cpp.

Referenced by lnp\_\-init().\index{liblnp.h@{liblnp.h}!unblock_rcv@{unblock\_\-rcv}}
\index{unblock_rcv@{unblock\_\-rcv}!liblnp.h@{liblnp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void unblock\_\-rcv (void)}\label{liblnp_8h_2101f4e7c77d670c7a38875fa788f698}


