42 #ifndef QWSUTILS_QWS_H 43 #define QWSUTILS_QWS_H 45 #include <QtCore/QIODevice> 54 #define QWS_SOCK_BASE QUnixSocket 55 #define QWS_SOCK_SERVER_BASE QUnixSocketServer 59 #define QWS_SOCK_BASE QTcpSocket 60 #define QWS_SOCK_SERVER_BASE QTcpServer 72 #ifndef QT_NO_QWS_MULTIPROCESS 79 socket->
read(reinterpret_cast<char*>(&i),
sizeof(i));
89 socket->
write(reinterpret_cast<char*>(&i),
sizeof(i));
92 #endif // QT_NO_QWS_MULTIPROCESS 98 #endif // QWSUTILS_QWS_H #define QT_END_NAMESPACE
This macro expands to.
The QUnixSocket class provides a Unix domain socket.
int qws_read_uint(QIODevice *socket)
qint64 read(char *data, qint64 maxlen)
Reads at most maxSize bytes from the device into data, and returns the number of bytes read...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QTcpSocket class provides a TCP socket.
virtual qint64 bytesAvailable() const
Returns the number of bytes that are available for reading.
The QTcpServer class provides a TCP-based server.
The QUnixSocketServer class provides a Unix domain socket based server.
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
void qws_write_uint(QIODevice *socket, int i)
The QIODevice class is the base interface class of all I/O devices in Qt.