45 #ifndef QT_NO_LOCALSOCKET 403 #if !defined(Q_OS_WIN) && !defined(QT_LOCALSOCKET_TCP) 405 d->unixSocket.setParent(0);
419 return d->serverName;
432 return d->fullServerName;
499 #ifndef QT_NO_DEBUG_STREAM 504 debug <<
"QLocalSocket::ConnectionRefusedError";
507 debug <<
"QLocalSocket::PeerClosedError";
510 debug <<
"QLocalSocket::ServerNotFoundError";
513 debug <<
"QLocalSocket::SocketAccessError";
516 debug <<
"QLocalSocket::SocketResourceError";
519 debug <<
"QLocalSocket::SocketTimeoutError";
522 debug <<
"QLocalSocket::DatagramTooLargeError";
525 debug <<
"QLocalSocket::ConnectionError";
528 debug <<
"QLocalSocket::UnsupportedSocketOperationError";
531 debug <<
"QLocalSocket::UnknownSocketError";
534 debug <<
"QLocalSocket::SocketError(" << int(error) <<
')';
544 debug <<
"QLocalSocket::UnconnectedState";
547 debug <<
"QLocalSocket::ConnectingState";
550 debug <<
"QLocalSocket::ConnectedState";
553 debug <<
"QLocalSocket::ClosingState";
556 debug <<
"QLocalSocket::SocketState(" << int(state) <<
')';
567 #include "moc_qlocalsocket.cpp" The QDebug class provides an output stream for debugging information.
~QLocalSocket()
Destroys the socket, closing the connection if necessary.
#define QT_END_NAMESPACE
This macro expands to.
LocalSocketState
This enum describes the different states in which a socket can be.
virtual void close()
Reimplemented Function
QLocalSocket(QObject *parent=0)
Creates a new local socket.
LocalSocketState state() const
Returns the state of the socket.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
The QLocalSocket class provides a local socket.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString serverName() const
Returns the name of the peer as specified by connectToServer(), or an empty QString if connectToServe...
virtual bool isSequential() const
Reimplemented Function
LocalSocketError error() const
Returns the type of error that last occurred.
QString fullServerName() const
Returns the server path that the socket is connected to.
The QIODevice class is the base interface class of all I/O devices in Qt.
QDebug operator<<(QDebug debug, QLocalSocket::LocalSocketError error)
LocalSocketError
The LocalServerError enumeration represents the errors that can occur.