Moved the global dispatcher to asyncdispatch.

This commit is contained in:
Dominik Picheta 2014-03-23 18:24:11 +00:00
commit d310b01db1
5 changed files with 174 additions and 144 deletions

View file

@ -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))