Hello all!
I know how VB has a single thread architecture, but could still kinda do a lil' bit of multi-threaded stuff.
My situation here is, I wrote a vb program that takes messages from the MSMQ, parses it then dials it out through the modem. The thing is, the modem is really slow. So instead of 1 modem, we'll be adding 1 or more modems.
I know how to check which modems are free (open or close), but how will I branch the program off so that it will send it to the modem that is free and continue taking messages off the queue.
pick up message from queue
if modem 1 is free, dial through modem 1.
pick up message from queue
since modem 1 is not free, check modem 2.
if modem 2 is free, send through modem 2.
Thanks guys!
I know how VB has a single thread architecture, but could still kinda do a lil' bit of multi-threaded stuff.
My situation here is, I wrote a vb program that takes messages from the MSMQ, parses it then dials it out through the modem. The thing is, the modem is really slow. So instead of 1 modem, we'll be adding 1 or more modems.
I know how to check which modems are free (open or close), but how will I branch the program off so that it will send it to the modem that is free and continue taking messages off the queue.
pick up message from queue
if modem 1 is free, dial through modem 1.
pick up message from queue
since modem 1 is not free, check modem 2.
if modem 2 is free, send through modem 2.
Thanks guys!