Reads a specified number of bytes from the Server socket.
[Visual Basic]Protected Function ReadBytes( _
ByVal count As Integer _
) As Byte()
[C#]
protected byte[] ReadBytes(
int count
);
Parameters
- count
- The number of bytes to return.
Return Value
An array of bytes.
Exceptions
Exception Type | Condition |
---|---|
System.ArgumentException | The number of bytes to read is invalid. |
System.Net.Sockets.SocketException | An operating system error occurs while accessing the Socket. |
System.ObjectDisposedException | The Socket has been closed. |
See Also
SocksHandler Class | SocksHandler Members | Org.Mentalis.Network.ProxySocket Namespace