I could swear #3 existed somehow, I'm surprised it doesn't
Same here, this is needed.
the client's address isn't available until the server accepts the connection - that is, if we assume /sockaccept is essentially an interface for a lower level accept() function. check out: