further development of httpserver

This commit is contained in:
Andreas Rumpf 2010-01-05 00:34:15 +01:00
commit a830367996
47 changed files with 102 additions and 29 deletions

2
lib/pure/sockets.nim Normal file → Executable file
View file

@ -66,6 +66,8 @@ const
proc `==`*(a, b: TSocket): bool {.borrow.}
proc `==`*(a, b: TPort): bool {.borrow.}
proc `$`* (p: TPort): string = result = $ze(int16(p))
proc ToInt(domain: TDomain): cint =
case domain
of AF_UNIX: result = posix.AF_UNIX