|
a/src/internfile/mh_execm.cpp |
|
b/src/internfile/mh_execm.cpp |
|
... |
|
... |
170 |
obuf << "Ipath: " << m_ipath.length() << "\n" << m_ipath;
|
170 |
obuf << "Ipath: " << m_ipath.length() << "\n" << m_ipath;
|
171 |
}
|
171 |
}
|
172 |
obuf << "Mimetype: " << m_mimeType.length() << "\n" << m_mimeType;
|
172 |
obuf << "Mimetype: " << m_mimeType.length() << "\n" << m_mimeType;
|
173 |
obuf << "\n";
|
173 |
obuf << "\n";
|
174 |
if (m_cmd.send(obuf.str()) < 0) {
|
174 |
if (m_cmd.send(obuf.str()) < 0) {
|
|
|
175 |
m_cmd.zapChild();
|
175 |
LOGERR(("MHExecMultiple: send error\n"));
|
176 |
LOGERR(("MHExecMultiple: send error\n"));
|
176 |
return false;
|
177 |
return false;
|
177 |
}
|
178 |
}
|
178 |
|
179 |
|
179 |
// Read answer (multiple elements)
|
180 |
// Read answer (multiple elements)
|
|
... |
|
... |
183 |
string ipath;
|
184 |
string ipath;
|
184 |
string mtype;
|
185 |
string mtype;
|
185 |
for (int loop=0;;loop++) {
|
186 |
for (int loop=0;;loop++) {
|
186 |
string name, data;
|
187 |
string name, data;
|
187 |
if (!readDataElement(name, data)) {
|
188 |
if (!readDataElement(name, data)) {
|
|
|
189 |
m_cmd.zapChild();
|
188 |
return false;
|
190 |
return false;
|
189 |
}
|
191 |
}
|
190 |
if (name.empty())
|
192 |
if (name.empty())
|
191 |
break;
|
193 |
break;
|
192 |
if (!stringlowercmp("eofnext:", name)) {
|
194 |
if (!stringlowercmp("eofnext:", name)) {
|