Get rid unsafe pointer type in GetQueuedCompletionStatus.
This commit is contained in:
parent
81d4049797
commit
6c4870d812
3 changed files with 7 additions and 4 deletions
|
|
@ -182,8 +182,9 @@ when defined(windows) or defined(nimdoc):
|
|||
var lpNumberOfBytesTransferred: DWORD
|
||||
var lpCompletionKey: ULONG
|
||||
var customOverlapped: PCustomOverlapped
|
||||
let res = GetQueuedCompletionStatus(p.ioPort, addr lpNumberOfBytesTransferred,
|
||||
addr lpCompletionKey, addr customOverlapped, llTimeout).bool
|
||||
let res = GetQueuedCompletionStatus(p.ioPort,
|
||||
addr lpNumberOfBytesTransferred, addr lpCompletionKey,
|
||||
cast[ptr POverlapped](addr customOverlapped), llTimeout).bool
|
||||
|
||||
# http://stackoverflow.com/a/12277264/492186
|
||||
# TODO: http://www.serverframework.com/handling-multiple-pending-socket-read-and-write-operations.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue