public void sendData(String msgStr)
    {
        try
        {
            dos.writeUTF(msgStr);
            
        } catch(IOException e)
        {
            e.printStackTrace();
        }
    }