accept

public func accept(Int32, Pointer[UInt8], Pointer[Int32]) -> Int32

Wraps accept(2) — pulls the next connection off sockfd's queue.

Blocks until a connection arrives. Returns the new connected fd on success, -1 on error. Pass null pointers for addr and addrlen if you don't need the client's address.

Defined in lang/std/net/libc.ks