File: http_main.cc

package info (click to toggle)
apt 0.9.7.9%2Bdeb7u7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,272 kB
  • sloc: cpp: 43,637; sh: 7,194; perl: 6,867; xml: 3,884; makefile: 787; python: 28
file content (22 lines) | stat: -rw-r--r-- 413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <config.h>

#include <apt-pkg/fileutl.h>
#include <apt-pkg/acquire-method.h>
#include <signal.h>

#include "connect.h"
#include "rfc2553emu.h"
#include "http.h"


int main()
{
   setlocale(LC_ALL, "");

   // ignore SIGPIPE, this can happen on write() if the socket
   // closes the connection (this is dealt with via ServerDie())
   signal(SIGPIPE, SIG_IGN);

   HttpMethod Mth;
   return Mth.Loop();
}