Nick Mathewson
9f560bfa11
Use "_WIN32", not WIN32: it's standard and we don't need to fake it
...
This patch was automatically generated with perl.
Based on a patch by Peter Rosin.
2011-05-25 20:03:15 -04:00
Peter Rosin
70be7d17e4
MSVC does not provide S_ISDIR, so provide it manually.
2011-05-25 19:44:06 -04:00
Nick Mathewson
2e9f665548
Fix a couple of memory leaks in samples/http-server.c. Found by Dave Hart.
2011-04-14 14:17:58 -04:00
Nick Mathewson
4eb281c8a9
FIX: comment internal headers used in sample code.
2011-02-22 00:24:57 -05:00
Nick Mathewson
eb692be9c8
NM: Fix sample/http-server ipv6 fixes
...
Fix 1: Use #include "../xyz" rather than #include <../xyz>
Fix 2: util-internal.h includes ipv6-internal.h, which in turn defines
a replacement AF_INET6 on platforms that don't have it. As such,
the AF_INET6 checks shouldn't be needed. (right?)
2011-02-22 00:24:57 -05:00
Harlan Stenn
bbf55150b6
Include util-internal.h as needed to build on platforms with no sockaddr_storage
2011-02-22 00:24:54 -05:00
Harlan Stenn
10c834c4df
Include arpa/inet.h as needed on HPUX
2011-02-22 00:24:36 -05:00
Nick Mathewson
22f4af6580
Remove end-of-line whitespace
2010-12-09 11:43:12 -05:00
Nick Mathewson
13fd242ddb
Fix win32 build of http-server.c with unicode enabled
2010-11-30 00:53:16 -05:00
Nick Mathewson
18d0327666
make http-server example code build on win32
2010-11-29 20:39:09 -05:00
Nick Mathewson
ad66dfd064
Fix http-server.c compilation on freebsd
2010-11-29 20:13:19 -05:00
Nick Mathewson
4881778c5c
Fix a misplaced ) in http_server.c
2010-11-26 13:28:48 -05:00
Nick Mathewson
4e794d5d39
Add a basic example of how to write a static HTTP server.
2010-11-26 12:58:22 -05:00