kdatagramsocket.h
virtual bool bind(const TQString &node=TQString::null, const TQString &service=TQString::null)=0
Binds this socket to the given nodename and service, or use the default ones if none are given.
virtual bool connect(const TQString &node=TQString::null, const TQString &service=TQString::null)=0
Attempts to connect to the these hostname and service, or use the default ones if none are given.
void setData(const char *data, uint length)
Sets the data to the given buffer and size.
Definition: kdatagramsocket.h:162
KDatagramPacket(const char *content, uint length, const TDESocketAddress &addr)
Constructs the datagram with the specified content and address.
Definition: kdatagramsocket.h:88
void setData(const TQByteArray &data)
Sets the data to the given value.
Definition: kdatagramsocket.h:156
const TDESocketAddress & address() const
Returns the socket address.
Definition: kdatagramsocket.h:137
KDatagramPacket(const char *content, uint length)
Constructs the datagram with the specified content.
Definition: kdatagramsocket.h:75
void setAddress(const TDESocketAddress &addr)
Sets the address stored to the given value.
Definition: kdatagramsocket.h:143
KDatagramPacket(const TQByteArray &content)
Constructs the datagram with the specified content.
Definition: kdatagramsocket.h:66
KDatagramPacket(const TQByteArray &content, const TDESocketAddress &addr)
Constructs the datagram with the specified content and address.
Definition: kdatagramsocket.h:81
virtual bool connect(const KResolverEntry &entry)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: kdatagramsocket.h:238
virtual bool bind(const KResolverEntry &entry)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: kdatagramsocket.h:216
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36