Moved the global dispatcher to asyncdispatch.
This commit is contained in:
parent
e855f6c073
commit
d310b01db1
5 changed files with 174 additions and 144 deletions
|
|
@ -143,7 +143,7 @@ else:
|
|||
result = cint(ord(p))
|
||||
|
||||
|
||||
proc socket*(domain: TDomain = AF_INET, typ: TType = SOCK_STREAM,
|
||||
proc newRawSocket*(domain: TDomain = AF_INET, typ: TType = SOCK_STREAM,
|
||||
protocol: TProtocol = IPPROTO_TCP): TSocketHandle =
|
||||
## Creates a new socket; returns `InvalidSocket` if an error occurs.
|
||||
socket(toInt(domain), toInt(typ), toInt(protocol))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue