Exemplo n.º 1
0
        public static void Main()
        {
            settings = new Settings();

            InitialPanel iPanel = new InitialPanel();

            Application.EnableVisualStyles();
            Application.Run(iPanel);
            VisualThread vThread       = new VisualThread();
            Thread       graphicThread = new Thread(vThread.StartThread);

            graphicThread.Start();
            dataSaver = new DataSaver();
            Recognizer recognizer = new Recognizer(vThread);

            packetBuffer = new PacketBuffer(vThread, recognizer, dataSaver);
            recognizer.SetPacketBuffer(PacketBuffer);
            Listener  listener = new Listener(PacketBuffer);
            TcpClient client   = listener.Connection();

            listener.StreamRead(client);
        }
Exemplo n.º 2
0
 public Listener(PacketBuffer packetBuffer)
 {
     this.packetBuffer = packetBuffer;
 }
Exemplo n.º 3
0
 public void SetPacketBuffer(PacketBuffer packetBuffer)
 {
     this.packetBuffer = packetBuffer;
 }