42 #ifndef QLOCALSOCKET_P_H 43 #define QLOCALSOCKET_P_H 56 #ifndef QT_NO_LOCALSOCKET 59 #include "private/qiodevice_p.h" 63 #if defined(QT_LOCALSOCKET_TCP) 65 #elif defined(Q_OS_WIN) 66 # include "private/qwindowspipewriter_p.h" 67 # include "private/qringbuffer_p.h" 68 # include <private/qwineventnotifier_p.h> 70 # include "private/qabstractsocketengine_p.h" 78 #if !defined(Q_OS_WIN) || defined(QT_LOCALSOCKET_TCP) 112 #endif //#if !defined(Q_OS_WIN) || defined(QT_LOCALSOCKET_TCP) 122 #if defined(QT_LOCALSOCKET_TCP) 123 QLocalUnixSocket* tcpSocket;
125 void setSocket(QLocalUnixSocket*);
130 #elif defined(Q_OS_WIN) 132 void destroyPipeHandles();
133 void setErrorString(
const QString &
function);
136 void _q_pipeClosed();
137 void _q_emitReadyRead();
138 DWORD checkPipeState();
139 void startAsyncRead();
140 bool completeAsyncRead();
141 void checkReadyRead();
153 static const qint64 initialReadBufferSize = 4096;
155 QLocalUnixSocket unixSocket;
160 void _q_connectToSocket();
161 void _q_abortConnectionAttempt();
162 void cancelDelayedConnect();
165 int connectingSocket;
167 QIODevice::OpenMode connectingOpenMode;
177 #endif // QT_NO_LOCALSOCKET 179 #endif // QLOCALSOCKET_P_H
void setSocketError(SocketError socketError)
Sets the type of error that last occurred to socketError.
#define QT_END_NAMESPACE
This macro expands to.
LocalSocketState
This enum describes the different states in which a socket can be.
QWinEventNotifier * dataReadNotifier
qint64 readData(char *data, qint64 maxlen)
Reimplemented Function
QLocalSocket::LocalSocketState state
The QString class provides a Unicode character string.
QWindowsPipeWriter * pipeWriter
void setSocketState(SocketState state)
Sets the state of the socket to state.
QLocalSocket::LocalSocketError error
The QLocalSocket class provides a local socket.
The QSocketNotifier class provides support for monitoring activity on a file descriptor.
SocketState
This enum describes the different states in which a socket can be.
#define QT_BEGIN_NAMESPACE
This macro expands to.
SocketError
This enum describes the socket errors that can occur.
static const char * data(const QByteArray &arr)
The QTcpSocket class provides a TCP socket.
#define Q_DECLARE_PUBLIC(Class)
void setErrorString(const QString &errorString)
Sets the human readable description of the last device error that occurred to str.
qint64 writeData(const char *data, qint64 len)
Reimplemented Function
The QTimer class provides repetitive and single-shot timers.
LocalSocketError
The LocalServerError enumeration represents the errors that can occur.