Be sure to use the === operator to check for FALSE in case of an error.
참고: It is perfectly valid for socket_write() to return zero which means no bytes have been written. Be sure to use the === operator to check for FALSE in case of an error.