KDECore
k3socketbase.h
Go to the documentation of this file.
110 Blocking = 0x01,
111 AddressReuseable = 0x02,
112 IPv6Only = 0x04,
113 Keepalive = 0x08,
114 Broadcast = 0x10,
116 };
145 NoError = 0,
163 };
virtual bool disconnect()=0
Disconnects this socket from a connection, if possible.
virtual bool connect(const KResolverEntry &address, OpenMode mode=ReadWrite)=0
Connect to a remote host.
virtual qint64 readData(char *data, qint64 maxlen, KSocketAddress *from)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual KSocketAddress localAddress() const =0
Returns this socket's local address.
virtual qint64 writeData(const char *data, qint64 len, const KSocketAddress *to)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual KSocketAddress peerAddress() const =0
Return this socket's peer address, if we are connected.
virtual bool bind(const KResolverEntry &address)=0
Binds this socket to the given address.
virtual qint64 peekData(char *data, qint64 maxlen, KSocketAddress *from)=0
Peeks the data in the socket and the source address.
virtual qint64 waitForMore(int msecs, bool *timeout=0L)=0
Waits up to msecs for more data to be available on this socket.
virtual bool listen(int backlog)=0
Puts this socket into listening mode.
virtual KSocketAddress localAddress() const =0
Returns this socket's local address.
virtual KSocketAddress externalAddress() const =0
Returns this socket's externally-visible address if known.
virtual bool bind(const KResolverEntry &address)=0
Binds this socket to the given address.
virtual KActiveSocketBase * accept()=0
Accepts a new incoming connection.
static void setError(QAbstractSocket *socket, QAbstractSocket::SocketError error, const QString &errorString)
Definition: ksocketfactory.cpp:44
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.