First version

Dependencies:   mbed EthernetInterface mbed-rto

TCPlistener.h

Committer:
KlaasGovaerts
Date:
2018-05-09
Revision:
62:0b634db67ca8
Parent:
60:ef4592cf5397
Child:
75:31c15986b85e

File content as of revision 62:0b634db67ca8:

#include "mbed.h"
#include "EthernetInterface.h"
#include "TCPSocketServer.h"
#include "TCPSocketConnection.h"

#ifndef TCPLISTENER_H
#define TCPLISTENER_H
    class TCPlistener{
        private:
            EthernetInterface eth;
            TCPSocketServer server;
        public:
            TCPlistener();
            bool receiveSegment(char *contents,int size);
    };
#endif