From e76648310b36baf1d0c16708428556631797a079 Mon Sep 17 00:00:00 2001 From: follower Date: Tue, 11 Dec 2007 11:55:47 +0000 Subject: [PATCH] Change 'read' declaration to return an int to match the 'Serial.read' functionality--I don't overly like the approach but that's what I'm wanting to be compatible with. Note: We haven't actually matched the behaviour yet. git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@113 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index a7f9b10..1796a11 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -226,7 +226,7 @@ class NetworkConnection { // Essentially a Socket wrapper int listen(); int isConnected(); - byte read(); + int read(); void NetworkConnection::close(); private: @@ -249,7 +249,7 @@ int NetworkConnection::listen() { // TODO: Make private or protected? return !!::listen(_socket); // TODO: Use C++ namespaces for the driver functions? } -byte NetworkConnection::read() { +int NetworkConnection::read() { /* Note: I thought 'recv' blocked until data was available,