Thinger.io client for boards compatible with the ARM mbed Ethernet Interface.

Dependencies:   EthernetInterface ThingerClient mbed-rtos

Fork of ThingerEthernetClient by Alvaro Luis Bustamante

TCPSocket.h

Committer:
alvarolb
Date:
2015-12-26
Revision:
3:a38b8921ff2c
Parent:
0:ad55e6505bbb

File content as of revision 3:a38b8921ff2c:

#include "TCPSocketConnection.h"

class TCPSocket : public TCPSocketConnection
{
public:
    TCPSocket() {
    }

    virtual ~TCPSocket() {
    }

    int available() {
        TimeInterval interval(0); // millisecods
        return wait_readable(interval)==0 ? 1 : 0;
    }
};