! \internal */
| 289 | \internal |
| 290 | */ |
| 291 | void QInterProcessChannel::message(const QString &msg, QManagedSocket *s) { |
| 292 | if (!pServer) return; |
| 293 | |
| 294 | // qDebug("message from Inter Process channel : %s", qPrintable(msg)); |
| 295 | |
| 296 | QStringList argv = QManagedRequest::splitArguments(msg); |
| 297 | const QString cmd = argv.at(0); |
| 298 | // const int argc = argv.count(); |
| 299 | |
| 300 | if (cmd == "--check") { |
| 301 | s->send("[ALIVE]"); |
| 302 | } else if (cmd == "--request") { |
| 303 | argv.removeAt(0); |
| 304 | emit request(argv); |
| 305 | } else { |
| 306 | emit message(msg); |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | /*! |
| 311 | \brief internal |