@Override
        public void run() {
            boolean sendAble=false;
            while(TcpThread) {
                synchronized (lockSend) {
                    while(!fifoSend.isEmpty()) {
                        try {
                            int s = fifoSend.remove();
                            streamOut.write(s);
                            System.out.print(Integer.toHexString(s)+", ");
                            sendAble=true;
                        } catch (IOException ex) {
                            Logger.getLogger(TcpIp.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                }

                if (sendAble) {
                    sendAble=false;
                    System.out.println("\n");
                    try {
                        streamOut.flush();
                    } catch (IOException ex) {
                        Logger.getLogger(TcpIp.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }

                try {              
                    tcpThreadSend.join();
                } catch (InterruptedException ex) {
                    //Probuzení vlákna
                    System.out.println("\nsend notify");
                }
            }
        }