modify vnc client to use socket buffer.