\hypertarget{master_2i__net_8cpp}{
\section{master/i\_\-net.cpp File Reference}
\label{db/d62/master_2i__net_8cpp}\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}}
}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef int \hyperlink{master_2i__net_8cpp_a8dc8083897335125630f1af5dafd5831}{SOCKET}
\item 
typedef int \hyperlink{master_2i__net_8cpp_a6b82106923cc13b3a9734520ecc29514}{socklen\_\-t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{common_2i__net_8cpp_a8dc8083897335125630f1af5dafd5831}{SOCKET} \hyperlink{master_2i__net_8cpp_a75b0bdc881020f57a6fcc3baf5f16b86}{UDPsocket} (void)
\item 
void \hyperlink{master_2i__net_8cpp_af2936d481118dd27dbf949ffc91beaf3}{BindToLocalPort} (\hyperlink{common_2i__net_8cpp_a8dc8083897335125630f1af5dafd5831}{SOCKET} \hyperlink{client_2src_2v__palette_8cpp_a06ccf22bb96191a8ce5f85600b246060}{s}, u\_\-short port)
\item 
void \hyperlink{master_2i__net_8cpp_a9b41cc6afd8c747b00cde5ae23849aec}{CloseNetwork} (void)
\item 
void \hyperlink{master_2i__net_8cpp_af2a5770816ad830a6131d3507e89ebc7}{SockadrToNetadr} (struct sockaddr\_\-in $\ast$\hyperlink{client_2src_2v__palette_8cpp_a06ccf22bb96191a8ce5f85600b246060}{s}, \hyperlink{structnetadr__t}{netadr\_\-t} $\ast$a)
\item 
void \hyperlink{master_2i__net_8cpp_a37acef4171febbec1a80733018c737e5}{NetadrToSockadr} (\hyperlink{structnetadr__t}{netadr\_\-t} $\ast$a, struct sockaddr\_\-in $\ast$\hyperlink{client_2src_2v__palette_8cpp_a06ccf22bb96191a8ce5f85600b246060}{s})
\item 
char $\ast$ \hyperlink{master_2i__net_8cpp_aca05f3f7991434345176732c42b88c49}{NET\_\-AdrToString} (\hyperlink{structnetadr__t}{netadr\_\-t} a, bool displayport)
\item 
bool \hyperlink{master_2i__net_8cpp_a168d107c16708b13c227de7e1954fc28}{NET\_\-StringToAdr} (char $\ast$\hyperlink{client_2src_2v__palette_8cpp_a06ccf22bb96191a8ce5f85600b246060}{s}, \hyperlink{structnetadr__t}{netadr\_\-t} $\ast$a)
\item 
bool \hyperlink{master_2i__net_8cpp_ab5df418d97bbdf92421eade13c3c2a11}{NET\_\-CompareAdr} (\hyperlink{structnetadr__t}{netadr\_\-t} a, \hyperlink{structnetadr__t}{netadr\_\-t} \hyperlink{client_2src_2v__palette_8cpp_a2c8b5e93edf6061940ca34185468fa03}{b})
\item 
int \hyperlink{master_2i__net_8cpp_a8bec85bebac2ea5930dee1635b28f847}{NET\_\-GetPacket} (void)
\item 
void \hyperlink{master_2i__net_8cpp_aa0a7fd71a2ae438efbb650371a929b5d}{NET\_\-SendPacket} (int length, \hyperlink{doomtype_8h_a0c8186d9b9b7880309c27230bbb5e69d}{byte} $\ast$data, \hyperlink{structnetadr__t}{netadr\_\-t} \hyperlink{sv__main_8cpp_a5bafda9519252aa2d0fd038153f77dca}{to})
\item 
void \hyperlink{master_2i__net_8cpp_abe3c8351b6193f1b5521a014638ea061}{InitNetCommon} (void)
\item 
void \hyperlink{master_2i__net_8cpp_a60eed2eebcc9b0dcbbe01666fd030a01}{I\_\-SetPort} (\hyperlink{structnetadr__t}{netadr\_\-t} \&addr, int port)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{master_2i__net_8cpp_aa44ae2d732fb823d8c8466f32f8a931c}{net\_\-socket}
\item 
int \hyperlink{master_2i__net_8cpp_a1dee8c35bd6d5726a9e2427115c2d537}{localport}
\item 
\hyperlink{structnetadr__t}{netadr\_\-t} \hyperlink{master_2i__net_8cpp_ae0a9bc60aba988b8f9e44ab3eeed31ba}{net\_\-from}
\item 
\hyperlink{classbuf__t}{buf\_\-t} \hyperlink{master_2i__net_8cpp_acfd6488de1ea4d36cf2efdb20db9f4cb}{net\_\-message} (MAX\_\-UDP\_\-PACKET)
\end{DoxyCompactItemize}


\subsection{Typedef Documentation}
\hypertarget{master_2i__net_8cpp_a8dc8083897335125630f1af5dafd5831}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!SOCKET@{SOCKET}}
\index{SOCKET@{SOCKET}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{SOCKET}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf SOCKET}}}
\label{db/d62/master_2i__net_8cpp_a8dc8083897335125630f1af5dafd5831}
\hypertarget{master_2i__net_8cpp_a6b82106923cc13b3a9734520ecc29514}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!socklen\_\-t@{socklen\_\-t}}
\index{socklen\_\-t@{socklen\_\-t}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{socklen\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf socklen\_\-t}}}
\label{db/d62/master_2i__net_8cpp_a6b82106923cc13b3a9734520ecc29514}


\subsection{Function Documentation}
\hypertarget{master_2i__net_8cpp_af2936d481118dd27dbf949ffc91beaf3}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!BindToLocalPort@{BindToLocalPort}}
\index{BindToLocalPort@{BindToLocalPort}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{BindToLocalPort}]{\setlength{\rightskip}{0pt plus 5cm}void BindToLocalPort (
\begin{DoxyParamCaption}
\item[{{\bf SOCKET}}]{s, }
\item[{u\_\-short}]{port}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_af2936d481118dd27dbf949ffc91beaf3}
\hypertarget{master_2i__net_8cpp_a9b41cc6afd8c747b00cde5ae23849aec}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!CloseNetwork@{CloseNetwork}}
\index{CloseNetwork@{CloseNetwork}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{CloseNetwork}]{\setlength{\rightskip}{0pt plus 5cm}void CloseNetwork (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_a9b41cc6afd8c747b00cde5ae23849aec}
\hypertarget{master_2i__net_8cpp_a60eed2eebcc9b0dcbbe01666fd030a01}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!I\_\-SetPort@{I\_\-SetPort}}
\index{I\_\-SetPort@{I\_\-SetPort}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{I\_\-SetPort}]{\setlength{\rightskip}{0pt plus 5cm}void I\_\-SetPort (
\begin{DoxyParamCaption}
\item[{{\bf netadr\_\-t} \&}]{addr, }
\item[{int}]{port}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_a60eed2eebcc9b0dcbbe01666fd030a01}
\hypertarget{master_2i__net_8cpp_abe3c8351b6193f1b5521a014638ea061}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!InitNetCommon@{InitNetCommon}}
\index{InitNetCommon@{InitNetCommon}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{InitNetCommon}]{\setlength{\rightskip}{0pt plus 5cm}void InitNetCommon (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_abe3c8351b6193f1b5521a014638ea061}
\hypertarget{master_2i__net_8cpp_aca05f3f7991434345176732c42b88c49}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!NET\_\-AdrToString@{NET\_\-AdrToString}}
\index{NET\_\-AdrToString@{NET\_\-AdrToString}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{NET\_\-AdrToString}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ NET\_\-AdrToString (
\begin{DoxyParamCaption}
\item[{{\bf netadr\_\-t}}]{a, }
\item[{bool}]{displayport}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_aca05f3f7991434345176732c42b88c49}
\hypertarget{master_2i__net_8cpp_ab5df418d97bbdf92421eade13c3c2a11}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!NET\_\-CompareAdr@{NET\_\-CompareAdr}}
\index{NET\_\-CompareAdr@{NET\_\-CompareAdr}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{NET\_\-CompareAdr}]{\setlength{\rightskip}{0pt plus 5cm}bool NET\_\-CompareAdr (
\begin{DoxyParamCaption}
\item[{{\bf netadr\_\-t}}]{a, }
\item[{{\bf netadr\_\-t}}]{b}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_ab5df418d97bbdf92421eade13c3c2a11}
\hypertarget{master_2i__net_8cpp_a8bec85bebac2ea5930dee1635b28f847}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!NET\_\-GetPacket@{NET\_\-GetPacket}}
\index{NET\_\-GetPacket@{NET\_\-GetPacket}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{NET\_\-GetPacket}]{\setlength{\rightskip}{0pt plus 5cm}int NET\_\-GetPacket (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_a8bec85bebac2ea5930dee1635b28f847}
\hypertarget{master_2i__net_8cpp_aa0a7fd71a2ae438efbb650371a929b5d}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!NET\_\-SendPacket@{NET\_\-SendPacket}}
\index{NET\_\-SendPacket@{NET\_\-SendPacket}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{NET\_\-SendPacket}]{\setlength{\rightskip}{0pt plus 5cm}void NET\_\-SendPacket (
\begin{DoxyParamCaption}
\item[{int}]{length, }
\item[{{\bf byte} $\ast$}]{data, }
\item[{{\bf netadr\_\-t}}]{to}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_aa0a7fd71a2ae438efbb650371a929b5d}
\hypertarget{master_2i__net_8cpp_a168d107c16708b13c227de7e1954fc28}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!NET\_\-StringToAdr@{NET\_\-StringToAdr}}
\index{NET\_\-StringToAdr@{NET\_\-StringToAdr}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{NET\_\-StringToAdr}]{\setlength{\rightskip}{0pt plus 5cm}bool NET\_\-StringToAdr (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s, }
\item[{{\bf netadr\_\-t} $\ast$}]{a}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_a168d107c16708b13c227de7e1954fc28}
\hypertarget{master_2i__net_8cpp_a37acef4171febbec1a80733018c737e5}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!NetadrToSockadr@{NetadrToSockadr}}
\index{NetadrToSockadr@{NetadrToSockadr}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{NetadrToSockadr}]{\setlength{\rightskip}{0pt plus 5cm}void NetadrToSockadr (
\begin{DoxyParamCaption}
\item[{{\bf netadr\_\-t} $\ast$}]{a, }
\item[{struct sockaddr\_\-in $\ast$}]{s}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_a37acef4171febbec1a80733018c737e5}
\hypertarget{master_2i__net_8cpp_af2a5770816ad830a6131d3507e89ebc7}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!SockadrToNetadr@{SockadrToNetadr}}
\index{SockadrToNetadr@{SockadrToNetadr}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{SockadrToNetadr}]{\setlength{\rightskip}{0pt plus 5cm}void SockadrToNetadr (
\begin{DoxyParamCaption}
\item[{struct sockaddr\_\-in $\ast$}]{s, }
\item[{{\bf netadr\_\-t} $\ast$}]{a}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_af2a5770816ad830a6131d3507e89ebc7}
\hypertarget{master_2i__net_8cpp_a75b0bdc881020f57a6fcc3baf5f16b86}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!UDPsocket@{UDPsocket}}
\index{UDPsocket@{UDPsocket}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{UDPsocket}]{\setlength{\rightskip}{0pt plus 5cm}{\bf SOCKET} UDPsocket (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{db/d62/master_2i__net_8cpp_a75b0bdc881020f57a6fcc3baf5f16b86}


\subsection{Variable Documentation}
\hypertarget{master_2i__net_8cpp_a1dee8c35bd6d5726a9e2427115c2d537}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!localport@{localport}}
\index{localport@{localport}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{localport}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf localport}}}
\label{db/d62/master_2i__net_8cpp_a1dee8c35bd6d5726a9e2427115c2d537}
\hypertarget{master_2i__net_8cpp_ae0a9bc60aba988b8f9e44ab3eeed31ba}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!net\_\-from@{net\_\-from}}
\index{net\_\-from@{net\_\-from}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{net\_\-from}]{\setlength{\rightskip}{0pt plus 5cm}{\bf netadr\_\-t} {\bf net\_\-from}}}
\label{db/d62/master_2i__net_8cpp_ae0a9bc60aba988b8f9e44ab3eeed31ba}
\hypertarget{master_2i__net_8cpp_acfd6488de1ea4d36cf2efdb20db9f4cb}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!net\_\-message@{net\_\-message}}
\index{net\_\-message@{net\_\-message}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{net\_\-message}]{\setlength{\rightskip}{0pt plus 5cm}{\bf buf\_\-t} {\bf net\_\-message}(MAX\_\-UDP\_\-PACKET)}}
\label{db/d62/master_2i__net_8cpp_acfd6488de1ea4d36cf2efdb20db9f4cb}
\hypertarget{master_2i__net_8cpp_aa44ae2d732fb823d8c8466f32f8a931c}{
\index{master/i\_\-net.cpp@{master/i\_\-net.cpp}!net\_\-socket@{net\_\-socket}}
\index{net\_\-socket@{net\_\-socket}!master/i_net.cpp@{master/i\_\-net.cpp}}
\subsubsection[{net\_\-socket}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf net\_\-socket}}}
\label{db/d62/master_2i__net_8cpp_aa44ae2d732fb823d8c8466f32f8a931c}
