diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-01-05 00:34:15 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-01-05 00:34:15 +0100 |
commit | a8303679960a13aa9ddd1f2fa44c2e4f9a12f071 (patch) | |
tree | 69cc1b3d8c501eb3d7fddaffe3d0e4e06bd5c82e /lib/pure | |
parent | a58a2f3823c33104992dc0e4129fa53e66a18f44 (diff) | |
download | Nim-a8303679960a13aa9ddd1f2fa44c2e4f9a12f071.tar.gz |
further development of httpserver
Diffstat (limited to 'lib/pure')
-rwxr-xr-x[-rw-r--r--] | lib/pure/sockets.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim index 0f9221b37..be2e4434a 100644..100755 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -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 |