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 (qt) [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 which makes it possible to queue data before an actual connection has been established.

 Connection ()

Connection

 ~Connection ()

~Connection

[virtual]

void  init (KSocket *sock)

init

void  init (int fd_in, int fd_out)

init

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

connect

void  close ()

close

int  fd_from ()

fd_from

[const]

int  fd_to ()

fd_to

[const]

bool  inited ()

inited

[const]

void  send (int cmd, const QByteArray &arr = QByteArray())

send

bool  sendnow ( int _cmd, const QByteArray &data )

sendnow

int  read ( int* _cmd, QByteArray & )

read

Receive data

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

void  suspend ()

suspend

Don't handle incoming data until resumed

void  resume ()

resume

Resume handling of incoming data

bool  suspended ()

suspended

[const]

Returns status of connection

void  dequeue ()

dequeue

[protected slots slot]


Generated by: dfaure on faure on Tue Apr 16 08:49:48 2002, using kdoc 2.0a53.