Support listening on a socket