First version

Dependencies:   mbed EthernetInterface mbed-rto

TCPlistener.h

Committer:
KlaasGovaerts
Date:
2018-05-02
Revision:
35:efdbfccf2678
Parent:
20:fe6a58e84929
Child:
36:aa6c6c177be2

File content as of revision 35:efdbfccf2678:

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

#ifndef TCPLISTENER_H
#define TCPLISTENER_H
/**
* Class used to receive segments using TCP.
*/
    class TCPlistener{
        private:
            EthernetInterface eth;
            TCPSocketServer server;
            //TCPSocketConnection* connections[10];
            int arraySize;
            //TCPSocketConnection* newConnection();
        public:
            bool receiveSegment(char *contents,int size);
            //void listen();
            TCPlistener();
    };
#endif