demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
TCPlistener.h
- Committer:
- KlaasGovaerts
- Date:
- 2018-04-18
- Revision:
- 14:a6c651a1e51c
- Parent:
- 13:f3db7045e220
- Child:
- 15:5f1fda6b9140
File content as of revision 14:a6c651a1e51c:
#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; Endpoint client; TCPSocketConnection *connections[10]; TCPSocketConnection * newConnection(TCPSocketConnection **connectionArray,int arraySize); public: void receivePacket(char *contents,int size); void listen(); TCPlistener(); }; #endif