Advertisement
Guest User

Untitled

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