Results 1 to 2 of 2

Thread: WinSock efficiency

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Posts
    82

    Exclamation

    This is the scenario, I have a Server WinSock accepting many Client WinSock, if you know what I mean.

    When Client A connects to Server, an occurence of WinSock is instantiated, this is OK.

    But when Client A disconnects and reconnects, it starts another instance of WinSock in the Server. Is there no way for me to check the source Client and maybe reassign it to the same Port/WinSock instance to 'recycle' resource or at least delete the disconnected connection?

  2. #2
    New Member
    Join Date
    Jan 2001
    Posts
    6

    Lightbulb It's easy!

    Hi!
    I've created OCX that implements client-server communication using WinSock Control. I'm using mechanism of dynamic creation and destruction of Winsocks on server side, so number of winsock instances are equal to number of connected clients. Just look for the code to for understanding how does it works. All source codes are included and well commented . There is also a multi-user chat as example of using my OCX.
    You can download it here (30k): http://vbs.pp.ru/download.asp?id=305
    Have a good day,
    -Zigmar

    [Death sucks - stay alive!]

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