From 1ad6cb0771adf325d7dc154cc4016954c2aecf1a Mon Sep 17 00:00:00 2001 From: Dan Reese Date: Thu, 3 Oct 2013 14:26:04 -0600 Subject: [PATCH] added an example to the readme --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 22c647c..837525a 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,16 @@ Send raw bytes. char data[] = {42}; long sent = [client sendBytes:data count:1]; -Receive raw bytes. +Receive available raw bytes up to the given limit. char data[42]; long received = [client receiveBytes:data limit:42]; +Receive the exact number of raw bytes given. + + char data[1000]; + long received = [client receiveBytes:data count:1000]; + Close the connection. [client close];