Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Multiple instances of TCP/IP stack and socket communication: Page 1 of 3 (3 Items)
   
Multiple instances of TCP/IP stack and socket communication  
Hello,

If a SOCK environment variable is set to the same “prefix” name used to
start a TCP/IP stack, then:



From a FAQ in QNX developer web site "The SOCK environment variable is set
so that QNX libsocket can identify which stack instance to use"

I cannot find any other official QNX document validating this information.
Can someone please confirm this or point to more detailed information on how
the SOCK environment variable is used within QNX, and if there are any
caveats to this.


Also I would like to confirm that a socket in a process (e.g. telnet client)
started using a specific SOCK environment will communicate with another
socket in a process  (e.g. telnetd) started using the same SOCK environment
variable, and no code changes is required in the processes (e.g. telnet and
telnetd), and no other parameters, or functions need to be set for this to
happen.


If for some reason,  a process started on SOCK=/sock2, wants to talk to
another process started on SOCK=/sock3, what is the recommended way of doing
this?



Thanks

Cheng-Yin