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(); }
public void OnUpdateCases(Parser.UpdateCasesHandler handler) { this.m_receiver.Parser.UpdateCases += handler; }
public void OnCaseCreated(Parser.CaseCreatedHandler handler) { this.m_receiver.Parser.CaseCreated += handler; }