two way tcp - newbie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is this design ok?
A permanent tcpip connection is established.

   box 1 - one tcp server socket - visible to two threads
      thread 1
         writes at arbitrary times
      thread 2
         reads when something comes
   
   box 2 - one tcp client socket - visible to two threads
      thread 1
         writes at arbitrary times
      thread 2
         reads when something comes

If this is a bad idea, I could use two socket pairs.
Thanks for your advice.
Mike.
--
Michael D. Berger

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux