Read data from the client socket and store it in a string.
An integer value which specifies the number of bytes actually read from the client. A return value of zero specifies that the remote host has closed the connection and there is no more data available to be read. If an error occurs, a value of -1 is returned and the application should check the value of the LastError property to determine the cause of the failure.
The Read method returns data that has been read from the client, up to a maximum of 8192 bytes. If no data is available to be read, the calling thread will block until data is received from the server or the connection is closed.
This method should only be used if the remote host is sending data that consists of printable characters. Binary data should be read using the method that accepts a byte array as the buffer parameter.
This implementation of the method can only be used within a class event handler, or a method that has been invoked from within an event handler. If you need to call the Read method outside of an event handler, you must explicitly specify the client handle.