Projectlab Elektronica-ICT KULeuven
Dependencies: EthernetInterface TMP102 TextLCD mbed-rtos mbed
Diff: Server.h
- Revision:
- 1:635e76c52151
- Parent:
- 0:ae3af7d18c4a
- Child:
- 2:1243006bb879
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Server.h Sun Mar 16 15:08:10 2014 +0000 @@ -0,0 +1,21 @@ +#include "EthernetInterface.h" +#ifndef Server_H +#define Server_H + +class Server { + private: + EthernetInterface* eth; + TCPSocketConnection* socket; + TCPSocketServer* server; + public: + Server(char* sourceAddress); + void send(char* data); + int read(char* buffer); + void printStatus(void); + int connect(char* destinationAddress); + int close(void); + void resetSocket(void); + ~Server(); +}; + +#endif \ No newline at end of file