Hi Joel,
Well,
The function RTCS_detachsock() removes the calling task from the socket’s list of owners. The RTCS_attachsock() adds the calling task to the socket’s list of owners.
For sure you could move the accept() to the child. To do this you will then listen for the socket activities. This can be done with the RTCS_selectall() or RTCS_selectset(). After the activity is presented you can then spam the child, pass the socket as a parameter and then you should be able to perform the accept.
Hope this answer your question.
Have a great day,
Garabo
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------