class Connection
|
This class provides a simple means for IPC between two applications
via a pipe. More... |
|
|
Public Methods
- Connection ()
- virtual ~ Connection ()
- void init (KSocket *sock)
- void connect (QObject *receiver = 0, const char *member = 0)
- void close ()
- int fd_from () const
- void init (int fd_in, int fd_out)
- bool inited () const
- void send (int cmd, const QByteArray &arr = QByteArray())
- bool sendnow ( int _cmd, const QByteArray &data )
- int read ( int* _cmd, QByteArray & )
- void suspend ()
- void resume ()
- void queueOnly (bool queue)
Protected Slots
Detailed Description
This class provides a simple means for IPC between two applications
via a pipe.
It handles a queue of commands to be sent, and has a internal signal
called after a command has been sent, to send the next one (FIFO).
Receive data
Returns: >=0 indicates the received data size upon success
-1 indicates error
Don't handle incoming data until resumed
Resume handling of incoming data
Generated by: dfaure@faure on Sun Mar 26 14:24:43 2000, using kdoc 2.0a35. |