Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ThingerClient WIZnetInterface
Fork of ThingerWIZnetClient by
TCPSocket.h@4:98914de56323, 2015-12-26 (annotated)
- Committer:
- alvarolb
- Date:
- Sat Dec 26 18:11:36 2015 +0000
- Revision:
- 4:98914de56323
- Parent:
- 1:db9212d9415d
socket update
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 | 4:98914de56323 | 13 | return eth->wait_readable(_sock_fd, 0); |
| alvarolb | 0:f1f02f6a2e6a | 14 | } |
| alvarolb | 0:f1f02f6a2e6a | 15 | }; |
