#include <qwssocket_qws.h>
Definition at line 66 of file qwssocket_qws.h.
◆ QWSSocket()
QWSSocket::QWSSocket |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Definition at line 88 of file qwssocket_qws.cpp.
Referenced by QWSServerSocket::nextPendingConnection().
void forwardStateChange(SocketState)
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
◆ ~QWSSocket()
QWSSocket::~QWSSocket |
( |
| ) |
|
◆ connected
void QWSSocket::connected |
( |
| ) |
|
|
signal |
◆ connectToLocalFile()
bool QWSSocket::connectToLocalFile |
( |
const QString & |
file | ) |
|
Definition at line 136 of file qwssocket_qws.cpp.
142 perror(
"QWSSocketAuth::connectToLocalFile could not connect:" );
149 int s = ::socket(PF_LOCAL, SOCK_STREAM, 0);
152 struct sockaddr_un
a;
153 memset(&
a, 0,
sizeof(
a));
154 a.sun_family = PF_LOCAL;
156 int r = ::connect(s, (
struct sockaddr*)&
a, SUN_LEN(&a));
158 setSocketDescriptor(s);
160 perror(
"QWSSocket::connectToLocalFile could not connect:");
long ASN1_INTEGER_get ASN1_INTEGER * a
void error(QAbstractSocket::SocketError)
QByteArray toLocal8Bit() const Q_REQUIRED_RESULT
Returns the local 8-bit representation of the string as a QByteArray.
const char * constData() const
Returns a pointer to the data stored in the byte array.
bool connect(const QByteArray &path)
Attempt to connect to path.
◆ disconnected
void QWSSocket::disconnected |
( |
| ) |
|
|
signal |
◆ error
◆ errorString()
Definition at line 102 of file qwssocket_qws.cpp.
Referenced by QWSClient::errorHandler(), and QWSServerSocket::init().
108 case NonexistentPath:
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
SocketError error() const
Returns the last error to have occurred on this object.
◆ forwardStateChange
void QWSSocket::forwardStateChange |
( |
SocketState |
| ) |
|
|
privateslot |
Definition at line 115 of file qwssocket_qws.cpp.
Referenced by QWSSocket().
124 case UnconnectedState:
void error(QAbstractSocket::SocketError)
SocketError
This enum describes the socket errors that can occur.
SocketError error() const
Returns the last error to have occurred on this object.
#define st(var, type, card)
The documentation for this class was generated from the following files: