Thinger.io Client Library for the WIZnet platform
Dependencies: ThingerClient WIZnetInterface
Fork of ThingerWIZnetClient by
TCPSocket.h@0:f1f02f6a2e6a, 2015-12-24 (annotated)
- Committer:
- alvarolb
- Date:
- Thu Dec 24 18:42:10 2015 +0000
- Revision:
- 0:f1f02f6a2e6a
- Child:
- 1:db9212d9415d
Initial Commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
alvarolb | 0:f1f02f6a2e6a | 1 | #include "TCPSocketConnection.h" |
alvarolb | 0:f1f02f6a2e6a | 2 | |
alvarolb | 0:f1f02f6a2e6a | 3 | class TCPSocket : public TCPSocketConnection |
alvarolb | 0:f1f02f6a2e6a | 4 | { |
alvarolb | 0:f1f02f6a2e6a | 5 | public: |
alvarolb | 0:f1f02f6a2e6a | 6 | TCPSocket() { |
alvarolb | 0:f1f02f6a2e6a | 7 | } |
alvarolb | 0:f1f02f6a2e6a | 8 | |
alvarolb | 0:f1f02f6a2e6a | 9 | virtual ~TCPSocket() { |
alvarolb | 0:f1f02f6a2e6a | 10 | } |
alvarolb | 0:f1f02f6a2e6a | 11 | |
alvarolb | 0:f1f02f6a2e6a | 12 | int available() { |
alvarolb | 0:f1f02f6a2e6a | 13 | return eth->wait_readable(_sock_fd, _blocking ? -1 : _timeout); |
alvarolb | 0:f1f02f6a2e6a | 14 | } |
alvarolb | 0:f1f02f6a2e6a | 15 | }; |