http_main.cc 392 B

123456789101112131415161718192021
  1. #include <apt-pkg/fileutl.h>
  2. #include <apt-pkg/acquire-method.h>
  3. #include <signal.h>
  4. #include "connect.h"
  5. #include "rfc2553emu.h"
  6. #include "http.h"
  7. int main()
  8. {
  9. setlocale(LC_ALL, "");
  10. // ignore SIGPIPE, this can happen on write() if the socket
  11. // closes the connection (this is dealt with via ServerDie())
  12. signal(SIGPIPE, SIG_IGN);
  13. HttpMethod Mth;
  14. return Mth.Loop();
  15. }