Projectlab Elektronica-ICT KULeuven
Dependencies: EthernetInterface TMP102 TextLCD mbed-rtos mbed
TCPServer.h@0:ae3af7d18c4a, 2014-03-14 (annotated)
- Committer:
- seppeduwe
- Date:
- Fri Mar 14 19:41:14 2014 +0000
- Revision:
- 0:ae3af7d18c4a
Nog voor klasse
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
seppeduwe | 0:ae3af7d18c4a | 1 | #include "EthernetInterface.h" |
seppeduwe | 0:ae3af7d18c4a | 2 | #ifndef TCPServer_H |
seppeduwe | 0:ae3af7d18c4a | 3 | #define TCPServer_H |
seppeduwe | 0:ae3af7d18c4a | 4 | |
seppeduwe | 0:ae3af7d18c4a | 5 | class TCPServer { |
seppeduwe | 0:ae3af7d18c4a | 6 | private: |
seppeduwe | 0:ae3af7d18c4a | 7 | EthernetInterface* eth; |
seppeduwe | 0:ae3af7d18c4a | 8 | TCPSocketConnection* socket; |
seppeduwe | 0:ae3af7d18c4a | 9 | TCPSocketServer* server; |
seppeduwe | 0:ae3af7d18c4a | 10 | public: |
seppeduwe | 0:ae3af7d18c4a | 11 | TCPServer(char* sourceAddress); |
seppeduwe | 0:ae3af7d18c4a | 12 | void send(char* data); |
seppeduwe | 0:ae3af7d18c4a | 13 | int read(char* buffer); |
seppeduwe | 0:ae3af7d18c4a | 14 | void printStatus(void); |
seppeduwe | 0:ae3af7d18c4a | 15 | int connect(char* destinationAddress); |
seppeduwe | 0:ae3af7d18c4a | 16 | int close(void); |
seppeduwe | 0:ae3af7d18c4a | 17 | void resetSocket(void); |
seppeduwe | 0:ae3af7d18c4a | 18 | ~TCPServer(); |
seppeduwe | 0:ae3af7d18c4a | 19 | }; |
seppeduwe | 0:ae3af7d18c4a | 20 | |
seppeduwe | 0:ae3af7d18c4a | 21 | #endif |