* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team.
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#include "os2_errortable.h"
#endif
+using std::endl;
+
// provide an empty mkfifo() if we do not have one. This disables the
// lyxserver.
#ifndef HAVE_MKFIFO
lyxerr << "LyXComm: Pipe " << tmp << " already exists.\n"
<< "If no other LyX program is active, please delete"
" the pipe by hand and try again." << endl;
- pipename.clear();
+ pipename.erase();
return;
}
#ifndef __EMX__
lyxerr << "LyXComm: Pipe " << tmp << " already exists.\n"
<< "If no other LyX program is active, please delete"
" the pipe by hand and try again." << endl;
- pipename.clear();
+ pipename.erase();
return;
}
#ifndef __EMX__
{
lyxerr << "LyxComm: truncated command: "
<< lsbuf << endl;
- lsbuf.clear();
+ lsbuf.erase();
}
break; // reset connection
}
bool server_only = false;
while(*p) {
// --- 1. check 'header' ---
+
if (strncmp(p, "LYXSRV:", 7) == 0) {
server_only = true;
} else if(0!= strncmp(p, "LYXCMD:", 7)) {
}
if (i < serv->numclients) {
serv->numclients--;
- serv->clients[i].clear();
+ serv->clients[i].erase();
lyxerr[Debug::LYXSERVER]
<< "LyXServer: Client "
<< client << " said goodbye"
string rval, buf;
if (action>= 0) {
- rval = serv->func->Dispatch(cmd);
+ rval = serv->func->Dispatch(action, arg.c_str());
} else {
rval = "Unknown command";
}