dcop
dcopserver.cpp File Reference
#include <config.h>#include <sys/types.h>#include <sys/resource.h>#include <sys/socket.h>#include <unistd.h>#include <stdlib.h>#include <signal.h>#include <fcntl.h>#include <errno.h>#include <qfile.h>#include <qtextstream.h>#include <qdatastream.h>#include <qptrstack.h>#include <qtimer.h>#include "dcopserver.h"#include <dcopsignals.h>#include <dcopclient.h>#include <dcopglobal.h>#include "dcop-path.h"#include <string.h>#include <strings.h>#include "dcopserver.moc"

Go to the source code of this file.
Defines | |
| #define | _DCOPIceSendBegin(x) |
| #define | _DCOPIceSendEnd() fcntl(fd, F_SETFL, fd_fl); |
| #define | MAGIC_COOKIE_LEN 16 |
| #define | QT_CLEAN_NAMESPACE 1 |
Functions | |
| int | _kde_IceTransWrite (void *ciptr, char *buf, int size) |
| static void | DCOPIceSendData (register IceConn _iceConn, const QByteArray &_data) |
| static void | DCOPIceWrite (IceConn iceConn, const QByteArray &_data) |
| void | DCOPIceWriteChar (register IceConn iceConn, unsigned long nbytes, char *ptr) |
| void | DCOPProcessMessage (IceConn iceConn, IcePointer, int opcode, unsigned long length, Bool swap) |
| static Status | DCOPServerProtocolSetupProc (IceConn, int majorVersion, int minorVersion, char *vendor, char *release, IcePointer *clientDataRet, char **) |
| void | DCOPWatchProc (IceConn iceConn, IcePointer client_data, Bool opening, IcePointer *watch_data) |
| static QCString | findDcopserverShutdown () |
| static void | fprintfhex (FILE *fp, unsigned int len, char *cp) |
| void | FreeAuthenticationData (int count, IceAuthDataEntry *_authDataEntries) |
| static Bool | HostBasedAuthProc (char *) |
| void | IoErrorHandler (IceConn iceConn) |
| static bool | isRunning (const QCString &fName, bool printNetworkId=false) |
| DCOP_EXPORT int | kdemain (int argc, char *argv[]) |
| int | mkstemps (char *_template, int suffix_len) |
| static QByteArray | readQByteArray (QDataStream &ds) |
| static QCString | readQCString (QDataStream &ds) |
| Status | SetAuthentication (int count, IceListenObj *_listenObjs, IceAuthDataEntry **_authDataEntries) |
| static void | sighandler (int sig) |
| static char * | unique_filename (const char *path, const char *prefix, int *pFd) |
| static void | write_iceauth (FILE *addfp, IceAuthDataEntry *entry) |
| static unsigned long | writeIceData (IceConn iceConn, unsigned long nbytes, char *ptr) |
Variables | |
| IceIOErrorHandler | _kde_IceIOErrorHandler |
| int | _kde_IceLastMajorOpcode |
| IceWriteHandler | _kde_IceWriteHandler |
| const char *const | ABOUT |
| static char * | addAuthFile |
| static IceAuthDataEntry * | authDataEntries |
| static const IcePaVersionRec | DCOPServerVersions [] |
| static const IcePoVersionRec | DUMMYVersions [] |
| static IceListenObj * | listenObjs |
| static int | numTransports |
| static int | pipeOfDeath [2] |
| static int | ready [2] |
| DCOPServer * | the_server |
Define Documentation
| #define _DCOPIceSendBegin | ( | x | ) |
Value:
int fd = IceConnectionNumber( x ); \ long fd_fl = fcntl(fd, F_GETFL, 0); \ fcntl(fd, F_SETFL, fd_fl | O_NDELAY);
Definition at line 78 of file dcopserver.cpp.
| #define _DCOPIceSendEnd | ( | ) | fcntl(fd, F_SETFL, fd_fl); |
Definition at line 82 of file dcopserver.cpp.
| #define MAGIC_COOKIE_LEN 16 |
Definition at line 573 of file dcopserver.cpp.
| #define QT_CLEAN_NAMESPACE 1 |
Definition at line 50 of file dcopserver.cpp.
Function Documentation
| int _kde_IceTransWrite | ( | void * | ciptr, | |
| char * | buf, | |||
| int | size | |||
| ) |
| static void DCOPIceSendData | ( | register IceConn | _iceConn, | |
| const QByteArray & | _data | |||
| ) | [static] |
Definition at line 386 of file dcopserver.cpp.
| static void DCOPIceWrite | ( | IceConn | iceConn, | |
| const QByteArray & | _data | |||
| ) | [static] |
Definition at line 271 of file dcopserver.cpp.
| void DCOPIceWriteChar | ( | register IceConn | iceConn, | |
| unsigned long | nbytes, | |||
| char * | ptr | |||
| ) |
Definition at line 239 of file dcopserver.cpp.
| void DCOPProcessMessage | ( | IceConn | iceConn, | |
| IcePointer | , | |||
| int | opcode, | |||
| unsigned long | length, | |||
| Bool | swap | |||
| ) |
Definition at line 704 of file dcopserver.cpp.
| static Status DCOPServerProtocolSetupProc | ( | IceConn | , | |
| int | majorVersion, | |||
| int | minorVersion, | |||
| char * | vendor, | |||
| char * | release, | |||
| IcePointer * | clientDataRet, | |||
| char ** | ||||
| ) | [static] |
Definition at line 931 of file dcopserver.cpp.
| void DCOPWatchProc | ( | IceConn | iceConn, | |
| IcePointer | client_data, | |||
| Bool | opening, | |||
| IcePointer * | watch_data | |||
| ) |
Definition at line 692 of file dcopserver.cpp.
| static QCString findDcopserverShutdown | ( | ) | [static] |
Definition at line 85 of file dcopserver.cpp.
| static void fprintfhex | ( | FILE * | fp, | |
| unsigned int | len, | |||
| char * | cp | |||
| ) | [static] |
Definition at line 448 of file dcopserver.cpp.
| void FreeAuthenticationData | ( | int | count, | |
| IceAuthDataEntry * | _authDataEntries | |||
| ) |
Definition at line 678 of file dcopserver.cpp.
| static Bool HostBasedAuthProc | ( | char * | ) | [static] |
Definition at line 113 of file dcopserver.cpp.
| void IoErrorHandler | ( | IceConn | iceConn | ) |
Definition at line 1607 of file dcopserver.cpp.
| static bool isRunning | ( | const QCString & | fName, | |
| bool | printNetworkId = false | |||
| ) | [static] |
Definition at line 1612 of file dcopserver.cpp.
| DCOP_EXPORT int kdemain | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 1661 of file dcopserver.cpp.
| int mkstemps | ( | char * | _template, | |
| int | suffix_len | |||
| ) |
Definition at line 494 of file dcopserver.cpp.
| static QByteArray readQByteArray | ( | QDataStream & | ds | ) | [static] |
Definition at line 142 of file dcopserver.cpp.
| static QCString readQCString | ( | QDataStream & | ds | ) | [static] |
Definition at line 124 of file dcopserver.cpp.
| Status SetAuthentication | ( | int | count, | |
| IceListenObj * | _listenObjs, | |||
| IceAuthDataEntry ** | _authDataEntries | |||
| ) |
Definition at line 576 of file dcopserver.cpp.
| static void sighandler | ( | int | sig | ) | [static] |
Definition at line 954 of file dcopserver.cpp.
| static char* unique_filename | ( | const char * | path, | |
| const char * | prefix, | |||
| int * | pFd | |||
| ) | [static] |
Definition at line 545 of file dcopserver.cpp.
| static void write_iceauth | ( | FILE * | addfp, | |
| IceAuthDataEntry * | entry | |||
| ) | [static] |
Definition at line 464 of file dcopserver.cpp.
| static unsigned long writeIceData | ( | IceConn | iceConn, | |
| unsigned long | nbytes, | |||
| char * | ptr | |||
| ) | [static] |
Definition at line 165 of file dcopserver.cpp.
Variable Documentation
| const char* const ABOUT |
Initial value:
"Usage: dcopserver [--nofork] [--nosid] [--help]\n" " dcopserver --serverid\n" "\n" "DCOP is KDE's Desktop Communications Protocol. It is a lightweight IPC/RPC\n" "mechanism built on top of the X Consortium's Inter Client Exchange protocol.\n" "It enables desktop applications to communicate reliably with low overhead.\n" "\n" "Copyright (C) 1999-2001, The KDE Developers <http://www.kde.org>\n"
Definition at line 1650 of file dcopserver.cpp.
char* addAuthFile [static] |
Definition at line 440 of file dcopserver.cpp.
IceAuthDataEntry* authDataEntries [static] |
Definition at line 439 of file dcopserver.cpp.
const IcePaVersionRec DCOPServerVersions[] [static] |
Initial value:
Definition at line 923 of file dcopserver.cpp.
const IcePoVersionRec DUMMYVersions[] [static] |
Initial value:
{
{ DCOPVersionMajor, DCOPVersionMinor, 0 }
}
Definition at line 927 of file dcopserver.cpp.
IceListenObj* listenObjs [static] |
Definition at line 442 of file dcopserver.cpp.
int numTransports [static] |
Definition at line 443 of file dcopserver.cpp.
int pipeOfDeath[2] [static] |
Definition at line 952 of file dcopserver.cpp.
int ready[2] [static] |
Definition at line 444 of file dcopserver.cpp.
Definition at line 72 of file dcopserver.cpp.
KDE 3.5 API Reference