kdatagramsocket.cpp
173 TQ_LONG KDatagramSocket::tqwriteBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to)
TQSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition: tdesocketdevice.cpp:614
SocketState state() const
Returns the current state for this socket.
Definition: kclientsocketbase.cpp:72
virtual KDatagramPacket receive()
Receives one datagram from the stream.
Definition: kdatagramsocket.cpp:134
const TDESocketAddress & address() const
Returns the socket address.
Definition: kdatagramsocket.h:137
virtual TQ_LONG waitForMore(int msecs, bool *timeout=0L)
Returns the number of bytes available for reading without blocking.
Definition: tdesocketdevice.cpp:384
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:632
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: kclientsocketbase.cpp:139
KResolver & localResolver() const
Returns the internal KResolver object used for looking up the local host name and service...
Definition: kclientsocketbase.cpp:109
virtual void slotReadActivity()
This slot is connected to the read notifier's signal meaning the socket can read more data...
Definition: kclientsocketbase.cpp:426
void gotError(int code)
This signal is emitted when this object finds an error.
void hostFound()
This signal is emitted when the lookup is successfully completed.
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36
virtual TQ_LONG send(const KDatagramPacket &packet)
Sends one datagram into the stream.
Definition: kdatagramsocket.cpp:168
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: kclientsocketbase.cpp:485
void setError(int status, SocketError error)
Sets the socket's error code and the I/O Device's status.
Definition: tdesocketbase.cpp:309
const KResolverResults & peerResults() const
Returns the internal list of resolved results for the peer address.
Definition: kclientsocketbase.cpp:104
void connected(const KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote address. ...
void setState(SocketState state)
Sets the socket state to state.
Definition: kclientsocketbase.cpp:77
KDatagramSocket(TQObject *parent=0L, const char *name=0L)
Default constructor.
Definition: kdatagramsocket.cpp:44
void stateChanged(int newstate)
This signal is emitted whenever the socket state changes.
TDESocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: tdesocketbase.cpp:116
virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len)
Writes data to the socket.
Definition: kclientsocketbase.cpp:362
void setAddress(const TQString &node, const TQString &service)
Sets both the host and the service names.
Definition: kresolver.cpp:376
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 bool bind(const TQString &node=TQString::null, const TQString &service=TQString::null)
Performs host lookups.
Definition: kdatagramsocket.cpp:69
bool emitsReadyRead() const
Returns true if the readyRead signal is set to be emitted.
Definition: kclientsocketbase.cpp:396
const KResolverResults & localResults() const
Returns the internal list of resolved results for the local address.
Definition: kclientsocketbase.cpp:114
virtual TQ_LONG tqwriteBlock(const char *data, TQ_ULONG len, const TDESocketAddress &to)
Writes data to the socket.
Definition: kdatagramsocket.cpp:173
bool emitsReadyWrite() const
Returns true if the readyWrite signal is set to be emitted.
Definition: kclientsocketbase.cpp:411
KResolver & peerResolver() const
Returns the internal KResolver object used for looking up the peer host name and service.
Definition: kclientsocketbase.cpp:99
virtual void slotWriteActivity()
This slot is connected to the write notifier's signal meaning the socket can write more data...
Definition: kclientsocketbase.cpp:432
virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
Reads data from a socket.
Definition: kclientsocketbase.cpp:314