demo versie 16/05

Dependencies:   EthernetInterface mbed-rto mbed

Fork of ProjectVLC by Klaas Govaerts

Revision:
50:c5cd73d93045
Parent:
38:47c075a354b5
Child:
62:237e32fd3555
--- a/TCPlistener.cpp	Wed May 09 09:06:38 2018 +0000
+++ b/TCPlistener.cpp	Wed May 09 10:08:32 2018 +0000
@@ -1,15 +1,21 @@
 #include "TCPlistener.h"
 
 TCPlistener::TCPlistener(){
+    printf("creating TCPlistener\r\n");
     char ip[]="192.168.0.253";
     char mask[]="255.255.255.0";
     char gateway[]="192.168.0.254";
     eth.init(ip,mask,gateway);
+    printf("Ethernet initialised.\r\n");
     eth.connect();
+    printf("connected to ethernet.\r\n");
     server.bind(4000);
+    printf("Bound to port 4000.\r\n");
     server.listen();
+    printf("Done listening.\r\n");
     server.set_blocking(true);
     arraySize=10;
+    printf("TCPlistener created.\r\n");
 }
 
 bool TCPlistener::receiveSegment(char *contents,int size){