Skip to content

Commit

Permalink
added an example to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Reese committed Oct 3, 2013
1 parent 418f248 commit 1ad6cb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1ad6cb0

Please sign in to comment.