
ActiveX Controls for Serial Devices - Port Contention
I have written several ActiveX controls for various Serial devices. These
controls were originally intended to run in a VB client or IE Client side,
So Port contention was not really an issue.
I now have the need to run some of these controls in ASP files on an IIS
server. My question is this, What is my best approach for dealing with
"port contention". My controls work fine if there is only one client
request at a time. When the request comes in I open the Port send the
command wait for the return and close the port (this only takes a fraction
of a second ). If, However, multiple requests came in at the same time the
control will return a valid response to the first client and an error code
that the port was already opened to subsequent clients.
I'd like to setup some sort of queue so that I can make requests queue up
until the port is available.
Any suggestions would be appreciated.
Paul Deignan