Hi Mark,
I have one TCP socket connected to my PC application server, which works excellent. I tested it by simply restarting the process (reset button, and power off/on), to see if the connection can be restablished from fresh again. But as soon as a connection is attemted by :
fnTCP_Connect(TCPsocket, IP, 21000, 0, 0);
I get a TCP_EVENT_ABORT message. Even if I restart the server application this happens. A connection can be remade after the system is left off for a few minutes and restarted (the server application doesnt have to be closed).
Before a connection is attempted, I wait 4 seconds allowing for initialisation then proceed with a connection. I am able to connect after a TCP_EVENT_ABORT message is received, is this normal? Do I place the line fnTCP_close(Socket); here, even though when resetting the processor a connection hasnt been made?
Regards
Neil