Projectlab Elektronica-ICT KULeuven

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

werking.pdf

Committer:
seppeduwe
Date:
Sun Mar 16 16:52:27 2014 +0000
Revision:
2:1243006bb879
Parent:
1:635e76c52151
Einde opendeurdag

Who changed what in which revision?

UserRevisionLine numberNew contents of line
seppeduwe 0:ae3af7d18c4a 1 #include "EthernetInterface.h"
seppeduwe 1:635e76c52151 2 #ifndef Server_H
seppeduwe 1:635e76c52151 3 #define Server_H
seppeduwe 0:ae3af7d18c4a 4
seppeduwe 2:1243006bb879 5 class Server
seppeduwe 2:1243006bb879 6 {
seppeduwe 2:1243006bb879 7 private:
seppeduwe 2:1243006bb879 8 EthernetInterface* eth;
seppeduwe 2:1243006bb879 9 TCPSocketConnection* socket;
seppeduwe 2:1243006bb879 10 TCPSocketServer* server;
seppeduwe 2:1243006bb879 11 public:
seppeduwe 2:1243006bb879 12 Server(char* sourceAddress);
seppeduwe 2:1243006bb879 13 void send(char* data);
seppeduwe 2:1243006bb879 14 int read(char* buffer);
seppeduwe 2:1243006bb879 15 void printStatus(void);
seppeduwe 2:1243006bb879 16 int connect(char* destinationAddress);
seppeduwe 2:1243006bb879 17 int close(void);
seppeduwe 2:1243006bb879 18 void resetSocket(void);
seppeduwe 2:1243006bb879 19 ~Server();
seppeduwe 0:ae3af7d18c4a 20 };
seppeduwe 0:ae3af7d18c4a 21
seppeduwe 0:ae3af7d18c4a 22 #endif