Projectlab Elektronica-ICT KULeuven

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

werking.pdf

Server.h

Committer:
seppeduwe
Date:
2014-03-16
Revision:
2:1243006bb879
Parent:
1:635e76c52151

File content as of revision 2:1243006bb879:

#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