Return the number of bytes available to be read from the socket.
Return the number of bytes available to be read from the socket.
public int Peek();
Read data from the socket and store it in a byte array, but do not remove the data from the socket buffers.
public int Peek(byte[]);
Read data from the socket and store it in a byte array, but do not remove the data from the socket buffers.
public int Peek(byte[],int);
Read data from the socket and store it in a string, but do not remove the data from the socket buffers.
public int Peek(ref string);
Read data from the socket and store it in a string, but do not remove the data from the socket buffers.
public int Peek(ref string,int);