Skip to content

Instantly share code, notes, and snippets.

@pheuter
Created May 1, 2010 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pheuter/386690 to your computer and use it in GitHub Desktop.
Save pheuter/386690 to your computer and use it in GitHub Desktop.
server = ServerSocket new() : ServerSocket
---------------------------------------------------------------
ERROR No such function accept(Int, SockAddr*, UInt*)
conn := accept(descriptor, addr&, addrSize&)
^^^^^^
Nearest match is:
accept: func (s : Int, addr : SockAddr*, addrlen : UInt) -> Int
..but the type of this arg should be UInt (lang/types [23951, 23955]), not UInt* (lang/types [23951, 23955])
conn := accept(descriptor, addr&, addrSize&)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment