close__conn_8c.tex
1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
\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));
(this->fds)[i].events = 0;
this->ndel++;
// CLEAR_CONN(this, i);
// this->nfds--;
}
\end{DoxyCode}
Here is the caller graph for this function: