You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
51 lines
1.6 KiB
\hypertarget{close__conn_8c}{
|
|
\section{src/server/close\_\-conn.c File Reference}
|
|
\label{close__conn_8c}\index{src/server/close\_\-conn.c@{src/server/close\_\-conn.c}}
|
|
}
|
|
{\ttfamily \#include $<$string.h$>$}\par
|
|
{\ttfamily \#include \char`\"{}server.h\char`\"{}}\par
|
|
{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par
|
|
Include dependency graph for close\_\-conn.c:
|
|
\subsection*{Functions}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
void \hyperlink{close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266}{serverCloseConn} (\hyperlink{structServer}{Server} this, unsigned int i)
|
|
\end{DoxyCompactItemize}
|
|
|
|
|
|
\subsection{Function Documentation}
|
|
\hypertarget{close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266}{
|
|
\index{close\_\-conn.c@{close\_\-conn.c}!serverCloseConn@{serverCloseConn}}
|
|
\index{serverCloseConn@{serverCloseConn}!close_conn.c@{close\_\-conn.c}}
|
|
\subsubsection[{serverCloseConn}]{\setlength{\rightskip}{0pt plus 5cm}void serverCloseConn (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Server}}]{this, }
|
|
\item[{unsigned int}]{i}
|
|
\end{DoxyParamCaption}
|
|
)}}
|
|
\label{close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266}
|
|
|
|
|
|
Definition at line 7 of file close\_\-conn.c.
|
|
|
|
|
|
\begin{DoxyCode}
|
|
{
|
|
int fd = (this->fds)[i].fd;
|
|
|
|
delete(&((this->conns)[fd].sock));
|
|
delete(&((this->conns)[fd].reader));
|
|
memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf));
|
|
(this->fds)[i].events = 0;
|
|
(this->fds)[i].revents = 0;
|
|
(this->fds)[i].fd = 0;
|
|
this->ndel++;
|
|
// CLEAR_CONN(this, i);
|
|
// this->nfds--;
|
|
}
|
|
\end{DoxyCode}
|
|
|
|
|
|
Here is the caller graph for this function:
|
|
|
|
|