@Override
    public void run()
    {
        try
        {
            OutputStream os = socket.getOutputStream();
            ByteArrayOutputStream f = new ByteArrayOutputStream();
            while(true)
            {  
                String str1 = user.send_text.getText();
                
                byte[] buffer = str1.getBytes();
                
                f.write(buffer);
                
                f.writeTo(os);
            }
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
    }