Exemplo n.º 1
0
        public Receiver(Parser parser, int port = 21337)
        {
            m_listenPort = port;
            m_listener = new TcpListener(IPAddress.Any, m_listenPort);
            m_listenThread = new Thread(new ThreadStart(Listen));
            m_listenThread.Name = "ListenThread";

            m_parser = parser;
        }
        static void Main(string[] args)
        {
            Parser parser = new Parser();
            Receiver receiver = new Receiver(parser,21337);
            Transmitter transmitter = new Transmitter();
            ServerInterpreter interpreter = new ServerInterpreter(receiver,transmitter);

            interpreter.StartReceiving();

        }
Exemplo n.º 3
0
 public void OnUpdateCases(Parser.UpdateCasesHandler handler)
 {
     this.m_receiver.Parser.UpdateCases += handler;
 }
Exemplo n.º 4
0
 public void OnCaseCreated(Parser.CaseCreatedHandler handler)
 {
     this.m_receiver.Parser.CaseCreated += handler;
 }