add socket::nodelay
update socket return value
format codes