bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
Diff: TcpServerToFlash.cpp
- Revision:
- 26:c14d034d7459
- Parent:
- 25:08f20fc5e5b5
diff -r 08f20fc5e5b5 -r c14d034d7459 TcpServerToFlash.cpp --- a/TcpServerToFlash.cpp Thu Jun 18 22:54:35 2020 +0200 +++ b/TcpServerToFlash.cpp Fri Jul 10 11:33:05 2020 +0200 @@ -81,7 +81,7 @@ { while( true ) { - printf("____Otvoren TCP server rx thread____ \n\r"); + printf("____Otvoren TCP WEB server rx thread____ \n\r"); if( gp_tcpSocket ) {delete gp_tcpSocket; gp_tcpSocket = NULL; } /* ima smisla ako se thread nasilno zatvara */ gp_tcpSocket = new TCPSocket; @@ -97,9 +97,6 @@ while( (p_soc = gp_tcpSocket->accept( &err)) ) { -// printf("\n\rTCP WEB SERVER: zahtev za konekciju - socket = %d err = %d\n\r", p_soc, err);fflush(stdout); - // s.wait(); // semafor sprecava novu konekciju dok se stara ne zavrsi - // printf("TCP WEB SERVER: Broj %d\n\r", ++nos); fflush(stdout); bws = 1; @@ -137,7 +134,7 @@ int restart = 0; int n, nr, nt; - printf("tcpServThread: Otvoren socket %d\n\r",(int)p_soc); + // printf("tcpServThread: Otvoren socket %d\n\r",(int)p_soc); while(true) { @@ -171,6 +168,7 @@ fflush(stdout); inbuff[n]=0; + // printf("%s\n\r",inbuff); //raspakivanje sadrzaja, a ako je POST preuzimanje parametara char ** strniz = gpc_html->doHTTP_freereturn( inbuff); char *type = strniz[0];