QtNetwork/qlocalsocket.h Source File
Go to the documentation of this file.
42 #ifndef QLOCALSOCKET_H
43 #define QLOCALSOCKET_H
54 #ifndef QT_NO_LOCALSOCKET
56 class QLocalSocketPrivate;
89 void connectToServer(
const QString &
name, OpenMode openMode = ReadWrite);
90 void disconnectFromServer();
100 virtual void close();
101 LocalSocketError error()
const;
103 bool isValid()
const;
104 qint64 readBufferSize()
const;
107 bool setSocketDescriptor(quintptr socketDescriptor,
108 LocalSocketState socketState = ConnectedState,
109 OpenMode openMode = ReadWrite);
110 quintptr socketDescriptor()
const;
112 LocalSocketState state()
const;
114 bool waitForConnected(
int msecs = 30000);
115 bool waitForDisconnected(
int msecs = 30000);
130 #if defined(QT_LOCALSOCKET_TCP)
133 #elif defined(Q_OS_WIN)
146 #ifndef QT_NO_DEBUG_STREAM
152 #endif // QT_NO_LOCALSOCKET
158 #endif // QLOCALSOCKET_H
Q_NETWORK_EXPORT QDebug operator<<(QDebug, QLocalSocket::LocalSocketError)
virtual bool isSequential() const
#define Q_PRIVATE_SLOT(d, signature)
virtual qint64 writeData(const char *data, qint64 len)=0
virtual qint64 bytesToWrite() const
virtual qint64 readData(char *data, qint64 maxlen)=0
virtual bool canReadLine() const
#define QT_BEGIN_NAMESPACE
virtual bool waitForReadyRead(int msecs)
GLuint const GLchar * name
virtual bool waitForBytesWritten(int msecs)
virtual qint64 bytesAvailable() const
Q_CORE_EXPORT QTextStream & flush(QTextStream &s)