kdatagramsocket.cpp
void setError(int status, SocketError error)
Sets the socket's error code and the I/O Device's status.
Definition: tdesocketbase.cpp:309
void connected(const KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote address.
bool emitsReadyWrite() const
Returns true if the readyWrite signal is set to be emitted.
Definition: kclientsocketbase.cpp:398
virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len)
Writes data to the socket.
Definition: kclientsocketbase.cpp:349
virtual TQ_LONG bytesAvailable() const
Returns the number of bytes available on this socket.
Definition: kclientsocketbase.cpp:281
virtual void slotReadActivity()
This slot is connected to the read notifier's signal meaning the socket can read more data.
Definition: kclientsocketbase.cpp:413
const KResolverResults & localResults() const
Returns the internal list of resolved results for the local address.
Definition: kclientsocketbase.cpp:106
virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen)
Reads data from a socket.
Definition: kclientsocketbase.cpp:301
bool emitsReadyRead() const
Returns true if the readyRead signal is set to be emitted.
Definition: kclientsocketbase.cpp:383
SocketState state() const
Returns the current state for this socket.
Definition: kclientsocketbase.cpp:64
void gotError(int code)
This signal is emitted when this object finds an error.
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: kclientsocketbase.cpp:131
KResolver & peerResolver() const
Returns the internal KResolver object used for looking up the peer host name and service.
Definition: kclientsocketbase.cpp:91
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: kclientsocketbase.cpp:472
void hostFound()
This signal is emitted when the lookup is successfully completed.
virtual void slotWriteActivity()
This slot is connected to the write notifier's signal meaning the socket can write more data.
Definition: kclientsocketbase.cpp:419
const KResolverResults & peerResults() const
Returns the internal list of resolved results for the peer address.
Definition: kclientsocketbase.cpp:96
void stateChanged(int newstate)
This signal is emitted whenever the socket state changes.
KResolver & localResolver() const
Returns the internal KResolver object used for looking up the local host name and service.
Definition: kclientsocketbase.cpp:101
const TDESocketAddress & address() const
Returns the socket address.
Definition: kdatagramsocket.h:137
virtual bool bind(const TQString &node=TQString::null, const TQString &service=TQString::null)
Performs host lookups.
Definition: kdatagramsocket.cpp:69
virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress &to)
Writes data to the socket.
Definition: kdatagramsocket.cpp:173
KDatagramSocket(TQObject *parent=0L, const char *name=0L)
Default constructor.
Definition: kdatagramsocket.cpp:44
virtual bool connect(const TQString &node=TQString::null, const TQString &service=TQString::null)
"Connects" this socket to the given address.
Definition: kdatagramsocket.cpp:92
virtual TQ_LONG send(const KDatagramPacket &packet)
Sends one datagram into the stream.
Definition: kdatagramsocket.cpp:168
virtual KDatagramPacket receive()
Receives one datagram from the stream.
Definition: kdatagramsocket.cpp:134
void setAddress(const TQString &node, const TQString &service)
Sets both the host and the service names.
Definition: kresolver.cpp:376
TDESocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: tdesocketbase.cpp:116
virtual TQ_LONG waitForMore(int msecs, bool *timeout=0L)
Waits up to msecs for more data to be available on this socket.
Definition: tdesocketdevice.cpp:379
virtual bool create(int family, int type, int protocol)
Creates a socket but don't connect or bind anywhere.
Definition: tdesocketdevice.cpp:201
TQSocketNotifier * writeNotifier() const
Returns a socket notifier for output on this socket.
Definition: tdesocketdevice.cpp:627
TQSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition: tdesocketdevice.cpp:609
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36