From 695136deb2b729fb9da904758a3027bdb5a94326 Mon Sep 17 00:00:00 2001 From: follower Date: Tue, 11 Dec 2007 11:54:14 +0000 Subject: [PATCH] Correct comment about 'read' blocking for data--it seems that 'recv' actually doesn't block after all. git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@112 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index 0e8c0f2..a7f9b10 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -252,7 +252,12 @@ int NetworkConnection::listen() { // TODO: Make private or protected? byte NetworkConnection::read() { /* - Note: This blocks until a byte is available. + Note: I thought 'recv' blocked until data was available, + but it currently seems not to block after all. + However, because I'm seeking to match the 'Serial.read' + behaviour we don't actually want to block anyway, + so we'll ignore it for the moment and handle things + ourself for now. */ uint8_t theByte;