Convert rfb_send_* helpers to return status codes and check their results. Add missing checks for stream_read() and stream_write() returns during the handshake in rfb_handle() to avoid acting on failed I/O.
Sponsored by: The FreeBSD Foundation
Signed-off-by: Hayzam Sherif <hayzam@gmail.com>