author | zecke <zecke> | 2002-10-01 18:04:40 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-01 18:04:40 (UTC) |
commit | de95e9ad55685630512a8ee67d6e9214af1b1071 (patch) (unidiff) | |
tree | a2f62044d8ba48aab1ca3f74376358f5aef352b3 /x11/ipc/server | |
parent | 1d9e6c252f74bfc8fcf6c80d8ce2a80cbd566d26 (diff) | |
download | opie-de95e9ad55685630512a8ee67d6e9214af1b1071.zip opie-de95e9ad55685630512a8ee67d6e9214af1b1071.tar.gz opie-de95e9ad55685630512a8ee67d6e9214af1b1071.tar.bz2 |
The client should be working
it's complete but I never compiled it
-rw-r--r-- | x11/ipc/server/ocopserver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/x11/ipc/server/ocopserver.cpp b/x11/ipc/server/ocopserver.cpp index 3df574b..e76657e 100644 --- a/x11/ipc/server/ocopserver.cpp +++ b/x11/ipc/server/ocopserver.cpp | |||
@@ -355,29 +355,30 @@ void OCopServer::isRegistered( const QCString& channel, int fd) { | |||
355 | func[0] = 1; | 355 | func[0] = 1; |
356 | }else{ | 356 | }else{ |
357 | func[0] = 0; | 357 | func[0] = 0; |
358 | } | 358 | } |
359 | 359 | ||
360 | /** | 360 | /** |
361 | * write the head | 361 | * write the head |
362 | * and then channel | 362 | * and then channel |
363 | * success/failure inside func | 363 | * success/failure inside func |
364 | */ | 364 | */ |
365 | write(fd, &head, sizeof(head) ); | 365 | write(fd, &head, sizeof(head) ); |
366 | write(fd, channel.data(), channel.size() ); | 366 | write(fd, channel.data(), channel.size() ); |
367 | write(fd, func.data(), func.size() ); | 367 | write(fd, func.data(), func.size() ); |
368 | } | 368 | } |
369 | QValueList<int> OCopServer::clients( const QCString& channel ) { | 369 | QValueList<int> OCopServer::clients( const QCString& channel ) { |
370 | return m_channels[channel]; | 370 | return m_channels[channel]; |
371 | } | 371 | } |
372 | void OCopServer::call( const OCOPPacket& p, int fd ) { | 372 | void OCopServer::call( const OCOPPacket& p, int fd ) { |
373 | QValueList<int> cli = clients( p.channel() ); | 373 | QValueList<int> cli = clients( p.channel() ); |
374 | QValueList<int>::Iterator it; | 374 | QValueList<int>::Iterator it; |
375 | 375 | ||
376 | OCOPHead head = p.head(); | 376 | OCOPHead head = p.head(); |
377 | for (it = cli.begin(); it != cli.end(); ++it ) { | 377 | for (it = cli.begin(); it != cli.end(); ++it ) { |
378 | write( (*it), &head, sizeof(head ) ); | 378 | write( (*it), &head, sizeof(head ) ); |
379 | /* expl. shared! */ | ||
379 | write( (*it), p.channel().data(), p.channel().size() ); | 380 | write( (*it), p.channel().data(), p.channel().size() ); |
380 | write( (*it), p.header().data(), p.header().size() ); | 381 | write( (*it), p.header().data(), p.header().size() ); |
381 | write( (*it), p.content().data(), p.content().size() ); | 382 | write( (*it), p.content().data(), p.content().size() ); |
382 | }; | 383 | }; |
383 | } | 384 | } |