minor cleanups
This commit is contained in:
parent
417eb3e026
commit
b907fac5f9
3 changed files with 3 additions and 25 deletions
|
|
@ -119,7 +119,7 @@ proc newSocket*(domain, typ, protocol: cint, buffered = true): Socket =
|
|||
result = newSocket(fd, buffered)
|
||||
|
||||
proc newSocket*(domain: Domain = AF_INET, typ: SockType = SOCK_STREAM,
|
||||
protocol: Protocol = IPPROTO_TCP, buffered = true): Socket =
|
||||
protocol: Protocol = IPPROTO_TCP, buffered = true): Socket =
|
||||
## Creates a new socket.
|
||||
##
|
||||
## If an error occurs EOS will be raised.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue