summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNathan Hoad <nathan@getoffmalawn.com>2015-03-08 13:37:32 +1100
committerNathan Hoad <nathan@getoffmalawn.com>2015-03-08 13:37:32 +1100
commitc179d10897e89fc1bfd0ab42578f79722989cd3a (patch)
tree70dca6130f21e1c5d920eb4fe9264d49c197a76b
parent82803d28717c21b3cd6a1e74b2f429d093b9d487 (diff)
downloadNim-c179d10897e89fc1bfd0ab42578f79722989cd3a.tar.gz
isIpAddress doesn't have any effects, so fix it up to clean up connect.
-rw-r--r--lib/pure/net.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim
index 5361994f8..0c5b594bd 100644
--- a/lib/pure/net.nim
+++ b/lib/pure/net.nim
@@ -95,7 +95,7 @@ type
       address_v4*: array[0..3, uint8] ## Contains the IP address in bytes in
                                       ## case of IPv4
 
-proc isIpAddress*(address_str: string): bool
+proc isIpAddress*(address_str: string): bool {.tags: [].}
 proc parseIpAddress*(address_str: string): TIpAddress
 
 proc isDisconnectionError*(flags: set[SocketFlag],
@@ -504,7 +504,7 @@ proc setSockOpt*(socket: Socket, opt: SOBool, value: bool, level = SOL_SOCKET) {
   setSockOptInt(socket.fd, cint(level), toCInt(opt), valuei)
 
 proc connect*(socket: Socket, address: string, port = Port(0), 
-              af: Domain = AF_INET) {.tags: [ReadIOEffect, RootEffect].} =
+              af: Domain = AF_INET) {.tags: [ReadIOEffect].} =
   ## Connects socket to ``address``:``port``. ``Address`` can be an IP address or a
   ## host name. If ``address`` is a host name, this function will try each IP
   ## of that host name. ``htons`` is already performed on ``port`` so you must