diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index ed80337..3dc7aee 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -225,7 +225,7 @@ class NetworkConnection { // Essentially a Socket wrapper public: NetworkConnection(uint16_t port); // TODO: Add UDP, TCP choice? - void listen(); // TODO: Return a useful value? + int listen(); int isConnected(); byte read(); void NetworkConnection::close(); @@ -243,11 +243,11 @@ NetworkConnection::NetworkConnection(uint16_t port) { socket(_socket, Sn_MR_TCP, port, 0); } -void NetworkConnection::listen() { // TODO: Make private or protected? +int NetworkConnection::listen() { // TODO: Make private or protected? /* */ - ::listen(_socket); // TODO: Use C++ namespaces for the driver functions? + return !!::listen(_socket); // TODO: Use C++ namespaces for the driver functions? } byte NetworkConnection::read() {