more G-Labs products

Author Topic: It is possible to make 2 TCP connection on one code?  (Read 930 times)

February 23, 2015, 07:41:57 AM
Read 930 times

kobi.beja

  • *
  • Information
  • Newbie
  • Posts: 21
Hi all,
I wonder if there any way to make 2  TCP connection on one C# code?
The concept is:
I have trigger via TCP and this run the script, TCP socket number 1 for any lighting control sys, Tcp socket number 2 is Infrared sys.
Or maybe I can run another program from the main program with the TCP connection?
PID 1012 run PID1011 and PID 1013?

Thanks
Kobi
 

February 25, 2015, 01:57:29 AM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
No it is not. You have to use two programs for achieving that.

g.

March 02, 2015, 04:24:47 PM
Reply #2

kobi.beja

  • *
  • Information
  • Newbie
  • Posts: 21
Hi Gene,
So what I need to do to run another program from my main program that manage the tcp ip?

BR
Kobi