tcp sockets on ppp problems

Hi all, i’ve made a multi ppp system on LP3500 using ppplib and gprs modems

I’m now encountering a strange problem:
at the first connection all works fine:

  • ppp up and ip assigned
  • socket connection to server ok
  • bidirectional data transfer ok
  • closing the fonnection by the server OK
  • closing local socket
  • closing ppp connection

  • ppp up and ip assigned ( dinamically )
  • socket connection does’nt establish

Any other had these problem?

There’s a way to flush tcp buffers and reinitialize tcp stacks and socket buffers?

Thanks to all.



Hi all… i’ve solved the problem… it seems !!!

Every tcp ppp connection opening i call sock_init();

and now it works fine!