コード例 #1
0
        public void Start(int PortHTTP, int PortTCP)
        {
            if (mStarted)
            {
                return;
            }
            mStarted  = true;
            mPortHttp = PortHTTP;
            mPortTcp  = PortTCP;

            // HTTP
            KayakServer server = new KayakServer();

            server.UseFramework();
            server.Start(new IPEndPoint(IPAddress.Any, mPortHttp));

            // TCP
            ValTcpService ts = new ValTcpService(mPortTcp);

            DoLoop();
        }
コード例 #2
0
ファイル: Worker.cs プロジェクト: natm/homemetrics
        public void Start(int PortHTTP,int PortTCP)
        {
            if (mStarted) {
                    return;
                }
                mStarted = true;
                mPortHttp = PortHTTP;
                mPortTcp = PortTCP;

                // HTTP
                KayakServer server = new KayakServer();
                server.UseFramework();
                server.Start(new IPEndPoint(IPAddress.Any,mPortHttp));

                // TCP
                ValTcpService ts = new ValTcpService(mPortTcp);

                DoLoop();
        }