summaryrefslogtreecommitdiff
authorzecke <zecke>2002-10-16 16:53:43 (UTC)
committer zecke <zecke>2002-10-16 16:53:43 (UTC)
commitef5700ad4eda47e98b76467fa80dd6cd838c6391 (patch) (unidiff)
treedcd5d051824689cab42f036895959483fb5e690b
parentea11ae7dc31e23578d13f30315a3697cbce99c05 (diff)
downloadopie-ef5700ad4eda47e98b76467fa80dd6cd838c6391.zip
opie-ef5700ad4eda47e98b76467fa80dd6cd838c6391.tar.gz
opie-ef5700ad4eda47e98b76467fa80dd6cd838c6391.tar.bz2
some debug output
+ bugfix besides some problems with the server IPC is working on X11 too
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--x11/ipc/client/ocopclient.cpp4
-rw-r--r--x11/ipc/server/ocopserver.cpp10
-rw-r--r--x11/ipc/server/ocopserver.pro1
3 files changed, 9 insertions, 6 deletions
diff --git a/x11/ipc/client/ocopclient.cpp b/x11/ipc/client/ocopclient.cpp
index ac6e4a3..c1def73 100644
--- a/x11/ipc/client/ocopclient.cpp
+++ b/x11/ipc/client/ocopclient.cpp
@@ -109,3 +109,3 @@ bool OCOPClient::isRegistered( const QCString& chan ) const{
109 write(m_socket, &head, sizeof(head) ); 109 write(m_socket, &head, sizeof(head) );
110 110 write(m_socket, chan.data(), chan.size() );
111 /* block */ 111 /* block */
@@ -146,3 +146,3 @@ void OCOPClient::startUP() {
146 setsid(); 146 setsid();
147 execlp("opie-ipc", "opie-ipc", NULL ); 147 execlp("ocopserver", "ocopserver", NULL );
148 _exit(1); 148 _exit(1);
diff --git a/x11/ipc/server/ocopserver.cpp b/x11/ipc/server/ocopserver.cpp
index e76657e..421e49c 100644
--- a/x11/ipc/server/ocopserver.cpp
+++ b/x11/ipc/server/ocopserver.cpp
@@ -136,4 +136,2 @@ int OCopServer::accept() {
136void OCopServer::newOnClient( int fd ) { 136void OCopServer::newOnClient( int fd ) {
137 int bug[4096];
138 //qWarning("new stuff for client on fd %d", fd );
139 errno = 0; 137 errno = 0;
@@ -155,3 +153,3 @@ void OCopServer::newOnClient( int fd ) {
155 */ 153 */
156 qWarning("data %s %d", bug, rea ); 154 //qWarning("data %s %d", &bug, rea );
157 155
@@ -176,2 +174,3 @@ void OCopServer::newOnClient( int fd ) {
176 */ 174 */
175 qWarning("read ");
177 int s = read(fd, channel.data(), head.chlen ); 176 int s = read(fd, channel.data(), head.chlen );
@@ -179,2 +178,3 @@ void OCopServer::newOnClient( int fd ) {
179 s = read(fd, data.data(), head.datalen ); 178 s = read(fd, data.data(), head.datalen );
179 qWarning("read");
180 180
@@ -287,2 +287,3 @@ void OCopServer::dispatch( const OCOPPacket& packet, int sourceFD ) {
287 case OCOPPacket::IsRegistered: 287 case OCOPPacket::IsRegistered:
288 qWarning("IsRegistered");
288 isRegistered( packet.channel(), sourceFD ); 289 isRegistered( packet.channel(), sourceFD );
@@ -342,2 +343,3 @@ void OCopServer::delChannel( const QCString& channel,
342void OCopServer::isRegistered( const QCString& channel, int fd) { 343void OCopServer::isRegistered( const QCString& channel, int fd) {
344 qWarning("isRegistered");
343 OCOPHead head; 345 OCOPHead head;
@@ -371,3 +373,3 @@ QValueList<int> OCopServer::clients( const QCString& channel ) {
371} 373}
372void OCopServer::call( const OCOPPacket& p, int fd ) { 374void OCopServer::call( const OCOPPacket& p, int ) {
373 QValueList<int> cli = clients( p.channel() ); 375 QValueList<int> cli = clients( p.channel() );
diff --git a/x11/ipc/server/ocopserver.pro b/x11/ipc/server/ocopserver.pro
index 1776063..e0a928c 100644
--- a/x11/ipc/server/ocopserver.pro
+++ b/x11/ipc/server/ocopserver.pro
@@ -1,2 +1,3 @@
1 TEMPLATE= app 1 TEMPLATE= app
2DESTDIR = $(OPIEDIR)/bin
2 CONFIG = qt warn_on debug 3 CONFIG = qt warn_on debug