How to close Winsock Connection
Posted on 2004-04-09
I have difficulties in Closing WInsock connection.
I can establish a connection to my server (which is a vision controller) via Ethernet. But when I close the application using close method, and open again, it fail to reconnect. It always give connection state to be either sckConnecting or sckError.
I cannot close a TCP/IP connection via close method? Even if I use close method, it does not invoke any _close event.
How can I establish my connection everytime I launch my application?