Esempio n. 1
0
        public TCPManager(MPBManager theMPBManager)
        {
            mpbManager = theMPBManager;
            protocol = new MPBProtocol(mpbManager);

            //IPAddress localAddr = IPAddress.Parse("127.0.0.1");
            IPHostEntry ipHostEntry = Dns.Resolve(Dns.GetHostName());
            IPAddress localAddr = ipHostEntry.AddressList[0];
            server = new TcpListener(localAddr, LocalServerPort);
            server.Start();

            Task.Run(() => RemoteMPBProcess());

        }
Esempio n. 2
0
 public MPBProtocol(MPBManager theMPBManager)
 {
     mpbManager = theMPBManager;
 }
Esempio n. 3
0
File: Form1.cs Progetto: karlnet/mpb
        /// ///////////////////////////////////////////////////////////////////////////////////
        private void Form1_Load(object sender, EventArgs e)
        {
            DisControls(null,true);

            mpbManager = new MPBManager(this);
            tcpManager = new TCPManager(mpbManager);

            c = new Camera(serialPort1);
        }