Now I'm using RL-TCPnet on an embedded controller which acts as the TCP server. The server returns back different messages according to different messages sent by different clients. To return back the messages to different clients, I guess that tcp_send function should be used. If my guess is right, I want to know if the server's tcp socket is defined as socket_tcp = tcp_get_socket(TCP_TYPE_SERVER,0,10,tcp_callback), shall the tcp_send function be called in the tcp_callback function on the TCP server?
do you have an example of receiving and sending data form a TCP_TYPE_SERVER? , I have tried but all my attemps have falied, I'm doing also what you said; using the send command from outside the call back function but it doesn't work
Kind regards