Results 1 to 11 of 11

Thread: Winsock connections - [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147

    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.
    Last edited by mik706; Jan 16th, 2004 at 05:00 AM.
    Mik706

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width