# class Connection | This class provides a simple means for IPC between two applications via a pipe. More...
Full name | `KIO::Connection`
Definition | `#include <connection.h>`
Inherits | QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- Connection ()
- virtual ~Connection ()
- 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 & )
- void suspend ()
- void resume ()
- bool suspended () const
- void queueOnly (bool queue)

#### Protected Slots

- void dequeue ()

## 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

~Connection () | ### ~Connection

[virtual]

void init (KSocket *sock) | ### init

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

Reimplemented from QObject.

void close () | ### close

int fd_from () | ### fd_from

[const]

int fd_to () | ### fd_to

[const]

void init (int fd_in, int fd_out) | ### init

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 queueOnly (bool queue) | ### queueOnly

void dequeue () | ### dequeue

[protected slots slot]

Generated by: root@i386.ports.openbsd.org on Wed Apr 25 13:58:36 2001, using kdoc 2.0a53.