further development of httpserver
This commit is contained in:
parent
a58a2f3823
commit
a830367996
47 changed files with 102 additions and 29 deletions
2
lib/pure/sockets.nim
Normal file → Executable file
2
lib/pure/sockets.nim
Normal file → Executable 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue