Results 1 to 2 of 2

Thread: Winsock questions...

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    1

    Post

    I am using VB6 to handle TCP communications between a PC and a scrolling marque display. I've got it basically working. I just need to clean-up a few things.

    I need the socket to be "connected" (not "open") before i can send any data. My problem occurs when I close (winsock1.close) the socket and try to reconnect to it. Winsock1.State is 1 (open). If I used the close method, why is the socket still "open". After about a minute (when the connection times out) I can connect without any problem. It look to me like the close method is not working the way I think it should<G>.

    I don't have any VB books, just Help files. Any insight would be great. Please send responses to [email protected]

    Thanks

  2. #2
    Guest

    Post

    I have this a lot to, a way to get around it is by useing a control array.


    Code:
    load winsock(1)
    winsock(1).connect MyIP, MyPort
    '--DO STUFF--
    winsock(1).close
    unload winsock(1)
    After the unload, you can just load it again, and it will connect without any problems.


    Hope it helps.


    ------------------

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




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