Projectlab Elektronica-ICT KULeuven

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

werking.pdf

Server.h

Committer:
seppeduwe
Date:
2014-03-16
Revision:
1:635e76c52151
Parent:
TCPServer.h@ 0:ae3af7d18c4a
Child:
2:1243006bb879

File content as of revision 1:635e76c52151:

#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