HCoop
/
ntk
/
apt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
add REAMDE.md
[ntk/apt.git]
/
methods
/
http_main.cc
1
#include <config.h>
2
3
#include <signal.h>
4
5
#include
"http.h"
6
7
int
main
()
8
{
9
setlocale
(
LC_ALL
,
""
);
10
11
// ignore SIGPIPE, this can happen on write() if the socket
12
// closes the connection (this is dealt with via ServerDie())
13
signal
(
SIGPIPE
,
SIG_IGN
);
14
15
HttpMethod Mth
;
16
return
Mth
.
Loop
();
17
}