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