fix compile error

Signed-off-by: Thynson <lanxingcan@gmail.com>
socket: error checking while accept connection from client

Signed-off-by: Thynson <lanxingcan@gmail.com>
socket, stream: Error checking for tcp I/O

Signed-off-by: Thynson <lanxingcan@gmail.com>