testserver_8c.tex
1.67 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
49
50
51
52
53
54
55
56
57
58
\hypertarget{testserver_8c}{
\section{src/testserver.c File Reference}
\label{testserver_8c}\index{src/testserver.c@{src/testserver.c}}
}
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$socket.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include \char`\"{}server.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}http/request\_\-parser.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}signalHandling.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par
Include dependency graph for testserver.c:
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
int \hyperlink{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{main} ()
\end{DoxyCompactItemize}
\subsection{Function Documentation}
\hypertarget{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{
\index{testserver.c@{testserver.c}!main@{main}}
\index{main@{main}!testserver.c@{testserver.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}
Definition at line 14 of file testserver.c.
\begin{DoxyCode}
{
Logger logger = new(LoggerStderr, LOGGER_ERR);
HttpRequestParser parser = new(HttpRequestParser);
Server server = new(Server, logger, parser, 11212, SOMAXCONN);
//Server server = new(Server, logger, parser, 11212, 20);
init_signals();
serverRun(server);
delete(&server);
delete(&logger);
delete(&parser);
return 0;
}
\end{DoxyCode}
Here is the call graph for this function: