\doxysection{ss7\+\_\+asp\+\_\+peer.\+h}
\label{ss7__asp__peer_8h_source}\index{src/ss7\_asp\_peer.h@{src/ss7\_asp\_peer.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{4 \textcolor{preprocessor}{\#include <stdbool.h>}}
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include <unistd.h>}}
\DoxyCodeLine{6 }
\DoxyCodeLine{7 \textcolor{comment}{/***********************************************************************}}
\DoxyCodeLine{8 \textcolor{comment}{ * SS7 ASP Peer}}
\DoxyCodeLine{9 \textcolor{comment}{ ***********************************************************************/}}
\DoxyCodeLine{10 }
\DoxyCodeLine{11 \textcolor{keyword}{struct }osmo\_ss7\_asp\_peer \{}
\DoxyCodeLine{12         \textcolor{keywordtype}{char} *host[OSMO\_SOCK\_MAX\_ADDRS];}
\DoxyCodeLine{13         \textcolor{keywordtype}{size\_t} host\_cnt;}
\DoxyCodeLine{14         uint16\_t port;}
\DoxyCodeLine{15         \textcolor{comment}{/* index in "{}hosts"{} array marking the SCTP Primary Address, -\/1 if no explicit Primary Address set */}}
\DoxyCodeLine{16         \textcolor{keywordtype}{int} idx\_primary;}
\DoxyCodeLine{17 \};}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{keywordtype}{int} ss7\_asp\_peer\_snprintf(\textcolor{keywordtype}{char} *buf, \textcolor{keywordtype}{size\_t} buf\_len, \textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer);}
\DoxyCodeLine{20 \textcolor{keywordtype}{void} ss7\_asp\_peer\_init(\textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer);}
\DoxyCodeLine{21 \textcolor{keywordtype}{int} ss7\_asp\_peer\_set\_hosts(\textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keywordtype}{void} *talloc\_ctx,}
\DoxyCodeLine{22                                 \textcolor{keyword}{const} \textcolor{keywordtype}{char} *\textcolor{keyword}{const}*hosts, \textcolor{keywordtype}{size\_t} host\_cnt);}
\DoxyCodeLine{23 \textcolor{keywordtype}{int} ss7\_asp\_peer\_set\_hosts2(\textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keywordtype}{void} *talloc\_ctx,}
\DoxyCodeLine{24                                  \textcolor{keyword}{const} \textcolor{keywordtype}{char} *\textcolor{keyword}{const}*hosts, \textcolor{keywordtype}{size\_t} host\_cnt, \textcolor{keywordtype}{int} idx\_primary);}
\DoxyCodeLine{25 \textcolor{keywordtype}{int} ss7\_asp\_peer\_add\_host(\textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keywordtype}{void} *talloc\_ctx, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *host);}
\DoxyCodeLine{26 \textcolor{keywordtype}{int} ss7\_asp\_peer\_add\_host2(\textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keywordtype}{void} *talloc\_ctx, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *host, \textcolor{keywordtype}{bool} is\_primary\_addr);}
\DoxyCodeLine{27 \textcolor{keywordtype}{int} ss7\_asp\_peer\_del\_host(\textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *host);}
\DoxyCodeLine{28 }
\DoxyCodeLine{29 \textcolor{keywordtype}{bool} ss7\_asp\_peer\_match\_host(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *host, \textcolor{keywordtype}{bool} host\_is\_v6);}
\DoxyCodeLine{30 \textcolor{keywordtype}{int} ss7\_asp\_peer\_find\_host(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *host);}

\end{DoxyCode}
