Mono.Debugger.Soft.Connection.Receive C# (CSharp) Method

Receive() private method

private Receive ( byte buf, int buf_offset, int len ) : int
buf byte
buf_offset int
len int
return int
		int Receive (byte[] buf, int buf_offset, int len) {
			int offset = 0;

			while (offset < len) {
				int n = socket.Receive (buf, buf_offset + offset, len - offset, SocketFlags.None);

				if (n == 0)
					return offset;
				offset += n;
			}

			return offset;
		}
Connection