mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 00:24:16 +00:00
Fixes docgen.
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
## constructor should be used for this purpose. However,
|
||||
## currently only basic authentication is supported.
|
||||
|
||||
import sockets, strutils, parseurl, parseutils, strtabs, base64
|
||||
import sockets, strutils, parseurl, parseutils, strtabs, base64, os
|
||||
import asyncnet, asyncdispatch
|
||||
import rawsockets
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ when isMainModule:
|
||||
sock: TSocket
|
||||
|
||||
var sock = socket()
|
||||
if sock == InvalidSocket: osError(osLastError())
|
||||
if sock == sockets.InvalidSocket: osError(osLastError())
|
||||
#sock.setBlocking(false)
|
||||
sock.connect("irc.freenode.net", TPort(6667))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import sockets
|
||||
import sockets, os
|
||||
var s: TSocket
|
||||
s = socket()
|
||||
if s == InvalidSocket: osError(osLastError())
|
||||
|
||||
Reference in New Issue
Block a user