tdesocketbase.h
virtual bool disconnect()=0
Disconnects this socket from a connection, if possible.
virtual TQ_LONG peekBlock(char *data, TQ_ULONG maxlen, TDESocketAddress &from)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress &to)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress &from)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual bool connect(const KResolverEntry &address)=0
Connect to a remote host.
virtual TDESocketAddress peerAddress() const =0
Return this socket's peer address, if we are connected.
virtual bool bind(const KResolverEntry &address)=0
Binds this socket to the given address.
virtual TDESocketAddress localAddress() const =0
Returns this socket's local address.
virtual TQ_LONG waitForMore(int msecs, bool *timeout=0L)=0
Waits up to msecs for more data to be available on this socket.
virtual TQ_LONG bytesAvailable() const =0
Returns the number of bytes available for reading without blocking.
virtual TQ_LONG readBlock(char *data, TQ_ULONG len)=0
Reads data from the socket.
virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len)=0
Writes the given data to the socket.
virtual TQ_LONG peekBlock(char *data, TQ_ULONG maxlen)=0
Peeks the data in the socket.
virtual KActiveSocketBase * accept()=0
Accepts a new incoming connection.
virtual TDESocketAddress localAddress() const =0
Returns this socket's local address.
virtual bool listen(int backlog)=0
Puts this socket into listening mode.
virtual TDESocketAddress externalAddress() const =0
Returns this socket's externally-visible address if known.
virtual bool bind(const KResolverEntry &address)=0
Binds this socket to the given address.
TQString errorString() const
Returns the error string corresponding to this error condition.
Definition: tdesocketbase.h:383
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36