kdatagramsocket.cpp
void setError(int status, SocketError error)
Sets the socket's error code and the I/O Device's status.
Definition: ksocketbase.cpp:309
void connected(const KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote address.
virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
Reads data from a socket.
Definition: kclientsocketbase.cpp:314
bool emitsReadyWrite() const
Returns true if the readyWrite signal is set to be emitted.
Definition: kclientsocketbase.cpp:411
virtual void slotReadActivity()
This slot is connected to the read notifier's signal meaning the socket can read more data.
Definition: kclientsocketbase.cpp:426
const KResolverResults & localResults() const
Returns the internal list of resolved results for the local address.
Definition: kclientsocketbase.cpp:114
bool emitsReadyRead() const
Returns true if the readyRead signal is set to be emitted.
Definition: kclientsocketbase.cpp:396
SocketState state() const
Returns the current state for this socket.
Definition: kclientsocketbase.cpp:72
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:139
KResolver & peerResolver() const
Returns the internal KResolver object used for looking up the peer host name and service.
Definition: kclientsocketbase.cpp:99
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: kclientsocketbase.cpp:485
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:432
const KResolverResults & peerResults() const
Returns the internal list of resolved results for the peer address.
Definition: kclientsocketbase.cpp:104
void stateChanged(int newstate)
This signal is emitted whenever the socket state changes.
virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len)
Writes data to the socket.
Definition: kclientsocketbase.cpp:362
KResolver & localResolver() const
Returns the internal KResolver object used for looking up the local host name and service.
Definition: kclientsocketbase.cpp:109
virtual bool bind(const TQString &node=TQString::null, const TQString &service=TQString::null)
Performs host lookups.
Definition: kdatagramsocket.cpp:69
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 tqwriteBlock(const char *data, TQ_ULONG len, const KSocketAddress &to)
Writes data to the socket.
Definition: kdatagramsocket.cpp:173
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
KSocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: ksocketbase.cpp:116
TQSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition: ksocketdevice.cpp:614
virtual bool create(int family, int type, int protocol)
Creates a socket but don't connect or bind anywhere.
Definition: ksocketdevice.cpp:201
TQSocketNotifier * writeNotifier() const
Returns a socket notifier for output on this socket.
Definition: ksocketdevice.cpp:632
virtual TQ_LONG waitForMore(int msecs, bool *timeout=0L)
Returns the number of bytes available for reading without blocking.
Definition: ksocketdevice.cpp:384
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36