KDECore
k3datagramsocket.h
Go to the documentation of this file.
52class KDECORE_EXPORT_DEPRECATED KDatagramPacket //krazy:exclude=dpointer,inline (lightweight; kde3)
KDatagramPacket(const QByteArray &content, const KSocketAddress &addr)
Constructs the datagram with the specified content and address.
Definition k3datagramsocket.h:82
void setData(const char *data, uint length)
Sets the data to the given buffer and size.
Definition k3datagramsocket.h:163
KDatagramPacket(const QByteArray &content)
Constructs the datagram with the specified content.
Definition k3datagramsocket.h:67
KDatagramPacket(const char *content, uint length, const KSocketAddress &addr)
Constructs the datagram with the specified content and address.
Definition k3datagramsocket.h:89
void setData(const QByteArray &data)
Sets the data to the given value.
Definition k3datagramsocket.h:157
KDatagramPacket(const char *content, uint length)
Constructs the datagram with the specified content.
Definition k3datagramsocket.h:76
void setAddress(const KSocketAddress &addr)
Sets the address stored to the given value.
Definition k3datagramsocket.h:144
virtual qint64 writeData(const char *data, qint64 len, const KSocketAddress *to)
Writes data to the socket.
Definition k3datagramsocket.cpp:189
virtual bool connect(const QString &node=QString(), const QString &service=QString(), OpenMode mode=ReadWrite)
"Connects" this socket to the given address.
Definition k3datagramsocket.cpp:100
virtual qint64 send(const KDatagramPacket &packet)
Sends one datagram into the stream.
Definition k3datagramsocket.cpp:184
virtual bool bind(const QString &node=QString(), const QString &service=QString())
Performs host lookups.
Definition k3datagramsocket.cpp:72
virtual KDatagramPacket receive()
Receives one datagram from the stream.
Definition k3datagramsocket.cpp:149
A namespace to store all networking-related (socket) classes.
Definition k3bufferedsocket.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.