Projectlab Elektronica-ICT KULeuven

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

werking.pdf

Committer:
seppeduwe
Date:
Sun Mar 16 15:08:10 2014 +0000
Revision:
1:635e76c52151
Parent:
TCPServer.h@0:ae3af7d18c4a
Child:
2:1243006bb879
Main goed

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 1:635e76c52151 5 class Server {
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 1:635e76c52151 11 Server(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 1:635e76c52151 18 ~Server();
seppeduwe 0:ae3af7d18c4a 19 };
seppeduwe 0:ae3af7d18c4a 20
seppeduwe 0:ae3af7d18c4a 21 #endif