AnsweredAssumed Answered

Embedded server

Question asked by Swapnil Katre on Dec 21, 2012
Latest reply on Dec 16, 2014 by David Santana

    Hello, i have been doing the development for a Embedded server for multiple client. i developed the one in my surrounding have worked with MQX + RTCS + Ethernet and i am new born for it. so i need your valuable suggestion for the same, just need to confirm that what i am doing is on good path:


what i want to do:

create a server with 12 ports to connect one client each port. for data transmission and reciption.


the Server task: i have written, logic flow:


1. first i created the socket's (all 12) assign them with a predefined Port.

2. in infinte while loop

     i. child_sock = RTCS_selectall(0);

     ii. child_sock = accept(listensock[0], NULL, NULL); // similarly for others ...

          after accept RTCS_detachsock the socket

          create a new task attach the socket with RTCS_attachsock