Projectlab Elektronica-ICT KULeuven
Dependencies: EthernetInterface TMP102 TextLCD mbed-rtos mbed
Diff: Server.h
- Revision:
- 2:1243006bb879
- Parent:
- 1:635e76c52151
--- a/Server.h Sun Mar 16 15:08:10 2014 +0000 +++ b/Server.h Sun Mar 16 16:52:27 2014 +0000 @@ -2,20 +2,21 @@ #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(); +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