예제 #1
0
파일: EQStream.cs 프로젝트: jjrh/OpenEQ
        public EQStream(string host, int port)
        {
            conn = new AsyncUDPConnection(host, port);

            Task.Factory.StartNew(CheckerAsync, TaskCreationOptions.LongRunning);
            Task.Factory.StartNew(ReceiverAsync, TaskCreationOptions.LongRunning);
        }
예제 #2
0
        public EQStream(string host, int port)
        {
            conn = new AsyncUDPConnection(host, port);

            AsyncHelper.Run(CheckerAsync, longRunning: true);
            AsyncHelper.Run(ReceiverAsync, longRunning: true);
        }