DLL & COM & ActiveX: WinSock efficiency

  • manofprayer / 104 / Sat, 30 Jan 2010 08:57:00 GMT / Comments (1)
  • 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?
  • Keywords:

    winsock, efficiency, dll, com, activex

  • http://programming.itags.org/com-activex/174551/«« Last Thread - Next Thread »»
    1. 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

      zigmar | Wed, 05 Dec 2007 13:33:00 GMT |