class Connection

This class provides a simple means for IPC between two applications via a pipe. More...

Full nameKIO::Connection
Definition#include <connection.h>
InheritsQObject [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

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).

 Connection ()

 ~Connection ()

[virtual]

void  init (KSocket *sock)

void  connect (QObject *receiver = 0, const char *member = 0)

void  close ()

int  fd_from ()

[const]

int  fd_to ()

[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 & )

Receive data

Returns: >=0 indicates the received data size upon success -1 indicates error

void  suspend ()

Don't handle incoming data until resumed

void  resume ()

Resume handling of incoming data

bool  suspended ()

[const]

Returns status of connection

void  queueOnly (bool queue)

void  dequeue ()

[ protected slots: slot]


Generated by: marc@yogi on Tue Mar 27 13:07:59 2001, using kdoc 2.0a48.