to do list list iterator logger buffer (tcp udp file) # sockfd is non-block, the api may be named as xxxWithNonBlock(...) file