4#include <QtNetwork/private/qtnetworkglobal_p.h>
363 d->readBufferChunkSize = 0;
373#if !defined(Q_OS_WIN) && !defined(QT_LOCALSOCKET_TCP)
375 d->unixSocket.setParent(
nullptr);
414 qWarning(
"QLocalSocket::setServerName() called while not in unconnected state");
417 d->serverName =
name;
430 return d->serverName;
445 return d->socketOptions;
452 qWarning(
"QLocalSocket::setSocketOptions() called while not in unconnected state");
461 return &
d->socketOptions;
474 return d->fullServerName;
537#ifndef QT_NO_DEBUG_STREAM
541 debug.resetFormat().nospace();
544 debug <<
"QLocalSocket::ConnectionRefusedError";
547 debug <<
"QLocalSocket::PeerClosedError";
550 debug <<
"QLocalSocket::ServerNotFoundError";
553 debug <<
"QLocalSocket::SocketAccessError";
556 debug <<
"QLocalSocket::SocketResourceError";
559 debug <<
"QLocalSocket::SocketTimeoutError";
562 debug <<
"QLocalSocket::DatagramTooLargeError";
565 debug <<
"QLocalSocket::ConnectionError";
568 debug <<
"QLocalSocket::UnsupportedSocketOperationError";
571 debug <<
"QLocalSocket::UnknownSocketError";
574 debug <<
"QLocalSocket::OperationError";
577 debug <<
"QLocalSocket::SocketError(" << int(
error) <<
')';
586 debug.resetFormat().nospace();
589 debug <<
"QLocalSocket::UnconnectedState";
592 debug <<
"QLocalSocket::ConnectingState";
595 debug <<
"QLocalSocket::ConnectedState";
598 debug <<
"QLocalSocket::ClosingState";
601 debug <<
"QLocalSocket::SocketState(" << int(
state) <<
')';
610#include "moc_qlocalsocket.cpp"
\inmodule QtCore \reentrant
bool isOpen() const
Returns true if the device is open; otherwise returns false.
QIODeviceBase::OpenMode openMode() const
Returns the mode in which the device has been opened; i.e.
The QLocalSocket class provides a local socket.
QString fullServerName() const
Returns the server path that the socket is connected to.
void setSocketOptions(SocketOptions option)
SocketOptions socketOptions
the socket options.
QBindable< SocketOptions > bindableSocketOptions()
virtual bool open(OpenMode openMode=ReadWrite) override
Equivalent to connectToServer(OpenMode mode).
virtual bool isSequential() const override
\reimp
LocalSocketState state() const
Returns the state of the socket.
void abort()
Aborts the current connection and resets the socket.
LocalSocketState
This enum describes the different states in which a socket can be.
~QLocalSocket()
Destroys the socket, closing the connection if necessary.
void connectToServer(OpenMode openMode=ReadWrite)
QLocalSocket(QObject *parent=nullptr)
Creates a new local socket.
QString serverName() const
Returns the name of the peer as specified by setServerName(), or an empty QString if setServerName() ...
void setServerName(const QString &name)
LocalSocketError
The LocalServerError enumeration represents the errors that can occur.
@ UnsupportedSocketOperationError
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
QDebug operator<<(QDebug debug, QLocalSocket::LocalSocketError error)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent