\hypertarget{socket_8c}{
\section{system/socket.c File Reference}
\label{socket_8c}\index{system/socket.c@{system/socket.c}}
}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$sys/socket.h$>$}\par
{\tt \#include $<$arpa/inet.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$errno.h$>$}\par
{\tt \#include $<$syslog.h$>$}\par
{\tt \#include \char`\"{}../include/monitor.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{socket_8c_44dc8ffaedb1d6f7d4663f5cecaf4e70}{initServerSocket} (in\_\-port\_\-t port, int backlog)
\item 
int \hyperlink{socket_8c_f09ba488c48f40f8d1f133a4441deb25}{acceptConnection} (int servSock, char remoteAddr\mbox{[}16\mbox{]})
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
int \hyperlink{socket_8c_0b2caeb4b6f130be43e5a2f0267dd453}{verbose}
\end{CompactItemize}


\subsection{Function Documentation}
\hypertarget{socket_8c_f09ba488c48f40f8d1f133a4441deb25}{
\index{socket.c@{socket.c}!acceptConnection@{acceptConnection}}
\index{acceptConnection@{acceptConnection}!socket.c@{socket.c}}
\subsubsection[{acceptConnection}]{\setlength{\rightskip}{0pt plus 5cm}int acceptConnection (int {\em servSock}, \/  char {\em remoteAddr}\mbox{[}16\mbox{]})}}
\label{socket_8c_f09ba488c48f40f8d1f133a4441deb25}




Definition at line 53 of file socket.c.\hypertarget{socket_8c_44dc8ffaedb1d6f7d4663f5cecaf4e70}{
\index{socket.c@{socket.c}!initServerSocket@{initServerSocket}}
\index{initServerSocket@{initServerSocket}!socket.c@{socket.c}}
\subsubsection[{initServerSocket}]{\setlength{\rightskip}{0pt plus 5cm}int initServerSocket (in\_\-port\_\-t {\em port}, \/  int {\em backlog})}}
\label{socket_8c_44dc8ffaedb1d6f7d4663f5cecaf4e70}




Definition at line 15 of file socket.c.

\subsection{Variable Documentation}
\hypertarget{socket_8c_0b2caeb4b6f130be43e5a2f0267dd453}{
\index{socket.c@{socket.c}!verbose@{verbose}}
\index{verbose@{verbose}!socket.c@{socket.c}}
\subsubsection[{verbose}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf verbose}}}
\label{socket_8c_0b2caeb4b6f130be43e5a2f0267dd453}


