Sunil Keshava(deleted)
|
setevn and clearenv - how efficient are they?
|
Sunil Keshava(deleted)
05/03/2010 6:11 AM
post53396
|
setevn and clearenv - how efficient are they?
Hi,
I have a QNX 6.4.1 system with a two-stack io-pkt network manager. In one of my applications, there is a need to
communicate packets between both stacks. I wanted to know what would be the best and most efficient way to switch
between stacks.
Currently, I do have a solution - I use the setevn() and clearenv() calls to set and reset the "SOCK" environmental
variable so that I am looking at the correct stack. However, this means that every time there is a packet to be
transmitted, I have to use the setenv() and clearenv() calls to make sure that I am transmitting to the right stack. I
am worried if these setenv() and clearenv() take too much time or resources to do what they do.
Any info would be appreciated
Regards
Sunil
|
|
|