Winsock connections - [RESOLVED]
I am having a problem with winsock, ever 30 seconds or so i am connecting to a device, which allows TCP/IP connection and doing a bit of data transfer. if when i have completed the data transfer i leave the socket open, when i return after 30 seconds i check the connection is ok, if the connection has been closed by the device i reopen it and continue everything works fine. If however if i close the socket after i have completed the data transfer and try to connect after 30 seconds the connection attempt time-out, if left to retry the socket every 30 seconds it will on occasion connect but it is but no means guarantied.
I need to find a way to avoid this problem as this code is contained within a dll and so I need to reopen the socket every time the dll is created.
Any help please.