Fixes docgen.
This commit is contained in:
parent
3670fe2385
commit
941cc937d3
3 changed files with 3 additions and 3 deletions
|
|
@ -75,7 +75,7 @@
|
||||||
## constructor should be used for this purpose. However,
|
## constructor should be used for this purpose. However,
|
||||||
## currently only basic authentication is supported.
|
## 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 asyncnet, asyncdispatch
|
||||||
import rawsockets
|
import rawsockets
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -238,7 +238,7 @@ when isMainModule:
|
||||||
sock: TSocket
|
sock: TSocket
|
||||||
|
|
||||||
var sock = socket()
|
var sock = socket()
|
||||||
if sock == InvalidSocket: osError(osLastError())
|
if sock == sockets.InvalidSocket: osError(osLastError())
|
||||||
#sock.setBlocking(false)
|
#sock.setBlocking(false)
|
||||||
sock.connect("irc.freenode.net", TPort(6667))
|
sock.connect("irc.freenode.net", TPort(6667))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import sockets
|
import sockets, os
|
||||||
var s: TSocket
|
var s: TSocket
|
||||||
s = socket()
|
s = socket()
|
||||||
if s == InvalidSocket: osError(osLastError())
|
if s == InvalidSocket: osError(osLastError())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue