summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-01-05 00:34:15 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2010-01-05 00:34:15 +0100
commita8303679960a13aa9ddd1f2fa44c2e4f9a12f071 (patch)
tree69cc1b3d8c501eb3d7fddaffe3d0e4e06bd5c82e /lib/pure
parenta58a2f3823c33104992dc0e4129fa53e66a18f44 (diff)
downloadNim-a8303679960a13aa9ddd1f2fa44c2e4f9a12f071.tar.gz
further development of httpserver
Diffstat (limited to 'lib/pure')
-rwxr-xr-x[-rw-r--r--]lib/pure/sockets.nim2
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