Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/corax/.choosenim/toolchains/nim-1.0.0/lib/pure/asyncnet.nim(219, 58) template/generic instantiation of `async` from here
- /home/corax/.choosenim/toolchains/nim-1.0.0/lib/pure/asyncnet.nim(226, 32) Error: type mismatch: got <AsyncFD, int, set[SocketFlag]>
- but expected one of:
- proc recvFrom(socket: Socket; data: var string; length: int; address: var string;
- port: var Port; flags = 0'i32): int
- first type mismatch at position: 1
- required type for socket: Socket
- but expression 'AsyncFD(socket.fd)' is of type: AsyncFD
- proc recvfrom(a1: SocketHandle; a2: pointer; a3: int; a4: cint; a5: ptr SockAddr;
- a6: ptr SockLen): int
- first type mismatch at position: 1
- required type for a1: SocketHandle
- but expression 'AsyncFD(socket.fd)' is of type: AsyncFD
- expression: recvFrom(AsyncFD(socket.fd), 4000, flags)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement