emit accept error code
emit 'listening' after accept
1.2.4