Hello,
I'm having trouble using TCP client socket on a PPP link.
I'm using Keil RTX 4.74.0 and MDK-Pro 5.0.4
PPP is established using a GPRS modem (I have updated the Modem_Standard.c to deal with network registration and so on)
In my main loop, once ppp_is_up() == true, I create a tcp_socket using : tcp_soc = tcp_get_socket (TCP_TYPE_CLIENT|TCP_TYPE_FLOW_CTRL, 0, 30, tcp_callback);
and then connect it using : tcp_connect (tcp_soc, rem_ip, 9301, 0);
The server is a http server.
Once the connection is established, the callback is then called from the Core Network with event == tcpEventEstablished. When this event is called, the main loop gets a flag indicating that it's time to write the request to the socket.
The write part is working and I receive a tcpEventACK in the callback.
The server on the other side well receive the request and sends the answer, but, the callback never gets called with the tcpEventData. In the end, the socket is closed and finaly aborted.
I have a serial spy where I can see the PPP dialog and I can see both the request and the answer.
Where do you think I go wrong ?
Thanks,
Alain.