class Connection

# 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 init (int fd_in, int fd_out)
- void connect (QObject *receiver = 0, const char *member = 0)
- void close ()
- int fd_from () const
- int fd_to () const
- 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

#### 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 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: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:57 2003, using kdoc 2.0a54.