tcp: listen implementation