clientRead_8c.tex 5.02 KB
\hypertarget{clientRead_8c}{
\section{reader/commonReader/clientRead.c File Reference}
\label{clientRead_8c}\index{reader/commonReader/clientRead.c@{reader/commonReader/clientRead.c}}
}
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$errno.h$>$}\par
{\tt \#include \char`\"{}../../include/client.h\char`\"{}}\par
{\tt \#include \char`\"{}../../include/monitor.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{clientRead_8c_3baabeba3e06eb1b8761363a58f8391b}{GET\_\-MULTIPLIER}(size)~(((size) - 1) / READBUFSIZE + 1)
\item 
\#define \hyperlink{clientRead_8c_47d745b24a58d0152c7b43db75387a79}{EOB}(client, addr)~((addr) -(client) $\rightarrow$ readBuffer $>$= (client) $\rightarrow$ readPos)
\item 
\#define \hyperlink{clientRead_8c_b6f9cfea308c9f485d4b00b60fd2f6cd}{REMAINING}(client, addr)~((client) $\rightarrow$ readPos - ((addr) - (client) $\rightarrow$ readBuffer))
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{clientRead_8c_6504ff36553f8008b9ee1d52aa977740}{clientRead} (\hyperlink{structtClient}{tClient} $\ast$client)
\item 
char $\ast$ \hyperlink{clientRead_8c_8363f6facea09bd36e288a51c983aed2}{clientConsumeLine} (\hyperlink{structtClient}{tClient} $\ast$client, const char $\ast$delim, unsigned int $\ast$len)
\item 
char $\ast$ \hyperlink{clientRead_8c_fbcefe4f20179c643fdff8007235325c}{clientGetLine} (\hyperlink{structtClient}{tClient} $\ast$client, const char $\ast$delim, unsigned int $\ast$len)
\item 
char $\ast$ \hyperlink{clientRead_8c_8cbd479139f4645f07ae0b7c18202fef}{clientRemoveLine} (\hyperlink{structtClient}{tClient} $\ast$client, const char $\ast$delim, unsigned int $\ast$len)
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{clientRead_8c_47d745b24a58d0152c7b43db75387a79}{
\index{clientRead.c@{clientRead.c}!EOB@{EOB}}
\index{EOB@{EOB}!clientRead.c@{clientRead.c}}
\subsubsection[{EOB}]{\setlength{\rightskip}{0pt plus 5cm}\#define EOB(client, \/  addr)~((addr) -(client) $\rightarrow$ readBuffer $>$= (client) $\rightarrow$ readPos)}}
\label{clientRead_8c_47d745b24a58d0152c7b43db75387a79}




Definition at line 100 of file clientRead.c.\hypertarget{clientRead_8c_3baabeba3e06eb1b8761363a58f8391b}{
\index{clientRead.c@{clientRead.c}!GET\_\-MULTIPLIER@{GET\_\-MULTIPLIER}}
\index{GET\_\-MULTIPLIER@{GET\_\-MULTIPLIER}!clientRead.c@{clientRead.c}}
\subsubsection[{GET\_\-MULTIPLIER}]{\setlength{\rightskip}{0pt plus 5cm}\#define GET\_\-MULTIPLIER(size)~(((size) - 1) / READBUFSIZE + 1)}}
\label{clientRead_8c_3baabeba3e06eb1b8761363a58f8391b}




Definition at line 9 of file clientRead.c.\hypertarget{clientRead_8c_b6f9cfea308c9f485d4b00b60fd2f6cd}{
\index{clientRead.c@{clientRead.c}!REMAINING@{REMAINING}}
\index{REMAINING@{REMAINING}!clientRead.c@{clientRead.c}}
\subsubsection[{REMAINING}]{\setlength{\rightskip}{0pt plus 5cm}\#define REMAINING(client, \/  addr)~((client) $\rightarrow$ readPos - ((addr) - (client) $\rightarrow$ readBuffer))}}
\label{clientRead_8c_b6f9cfea308c9f485d4b00b60fd2f6cd}




Definition at line 101 of file clientRead.c.

\subsection{Function Documentation}
\hypertarget{clientRead_8c_8363f6facea09bd36e288a51c983aed2}{
\index{clientRead.c@{clientRead.c}!clientConsumeLine@{clientConsumeLine}}
\index{clientConsumeLine@{clientConsumeLine}!clientRead.c@{clientRead.c}}
\subsubsection[{clientConsumeLine}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ clientConsumeLine ({\bf tClient} $\ast$ {\em client}, \/  const char $\ast$ {\em delim}, \/  unsigned int $\ast$ {\em len})}}
\label{clientRead_8c_8363f6facea09bd36e288a51c983aed2}




Definition at line 133 of file clientRead.c.\hypertarget{clientRead_8c_fbcefe4f20179c643fdff8007235325c}{
\index{clientRead.c@{clientRead.c}!clientGetLine@{clientGetLine}}
\index{clientGetLine@{clientGetLine}!clientRead.c@{clientRead.c}}
\subsubsection[{clientGetLine}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ clientGetLine ({\bf tClient} $\ast$ {\em client}, \/  const char $\ast$ {\em delim}, \/  unsigned int $\ast$ {\em len})}}
\label{clientRead_8c_fbcefe4f20179c643fdff8007235325c}




Definition at line 151 of file clientRead.c.\hypertarget{clientRead_8c_6504ff36553f8008b9ee1d52aa977740}{
\index{clientRead.c@{clientRead.c}!clientRead@{clientRead}}
\index{clientRead@{clientRead}!clientRead.c@{clientRead.c}}
\subsubsection[{clientRead}]{\setlength{\rightskip}{0pt plus 5cm}int clientRead ({\bf tClient} $\ast$ {\em client})}}
\label{clientRead_8c_6504ff36553f8008b9ee1d52aa977740}




Definition at line 53 of file clientRead.c.\hypertarget{clientRead_8c_8cbd479139f4645f07ae0b7c18202fef}{
\index{clientRead.c@{clientRead.c}!clientRemoveLine@{clientRemoveLine}}
\index{clientRemoveLine@{clientRemoveLine}!clientRead.c@{clientRead.c}}
\subsubsection[{clientRemoveLine}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ clientRemoveLine ({\bf tClient} $\ast$ {\em client}, \/  const char $\ast$ {\em delim}, \/  unsigned int $\ast$ {\em len})}}
\label{clientRead_8c_8cbd479139f4645f07ae0b7c18202fef}




Definition at line 164 of file clientRead.c.