ThingPlug GMMP library for mbed
Dependents: ThingPlug_WiFi_Example_2 ThingPlug_Ethernet_Example ThingPlug_Ethernet_Example_temp_V2
Fork of GMMP_2 by
Network/TCPclient/Print.h@10:84a748b7d1f6, 2015-08-14 (annotated)
- Committer:
- lesmin
- Date:
- Fri Aug 14 09:11:32 2015 +0000
- Revision:
- 10:84a748b7d1f6
- Parent:
- 0:7e575e5f88ec
added TCP retry codes by WIZnet
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lesmin | 0:7e575e5f88ec | 1 | #ifndef Print_h |
lesmin | 0:7e575e5f88ec | 2 | #define Print_h |
lesmin | 0:7e575e5f88ec | 3 | |
lesmin | 0:7e575e5f88ec | 4 | #include <stddef.h> |
lesmin | 0:7e575e5f88ec | 5 | #include <stdint.h> |
lesmin | 0:7e575e5f88ec | 6 | |
lesmin | 0:7e575e5f88ec | 7 | class Print { |
lesmin | 0:7e575e5f88ec | 8 | public: |
lesmin | 0:7e575e5f88ec | 9 | size_t print(const char* s); |
lesmin | 0:7e575e5f88ec | 10 | size_t print(char c); |
lesmin | 0:7e575e5f88ec | 11 | size_t print(int n); |
lesmin | 0:7e575e5f88ec | 12 | size_t print(long n); |
lesmin | 0:7e575e5f88ec | 13 | size_t print(double n, int digits = 2); |
lesmin | 0:7e575e5f88ec | 14 | |
lesmin | 0:7e575e5f88ec | 15 | size_t println(const char* s); |
lesmin | 0:7e575e5f88ec | 16 | size_t println(char c); |
lesmin | 0:7e575e5f88ec | 17 | size_t println(int n); |
lesmin | 0:7e575e5f88ec | 18 | size_t println(long n); |
lesmin | 0:7e575e5f88ec | 19 | size_t println(double n, int digits = 2); |
lesmin | 0:7e575e5f88ec | 20 | size_t println(); |
lesmin | 0:7e575e5f88ec | 21 | |
lesmin | 0:7e575e5f88ec | 22 | virtual size_t write(uint8_t c) = 0; |
lesmin | 0:7e575e5f88ec | 23 | virtual size_t write(const uint8_t* buf, size_t size); |
lesmin | 0:7e575e5f88ec | 24 | }; |
lesmin | 0:7e575e5f88ec | 25 | |
lesmin | 0:7e575e5f88ec | 26 | #endif |