kbufferedsocket.h
71 TDEBufferedSocket(const TQString& node = TQString::null, const TQString& service = TQString::null,
KStreamSocket(const TQString &node=TQString::null, const TQString &service=TQString::null, TQObject *parent=0L, const char *name=0L)
Default constructor.
Definition kstreamsocket.cpp:53
virtual void stateChanging(SocketState newState)
Catch connection to clear the buffers.
Definition kbufferedsocket.cpp:226
virtual bool setSocketOptions(int opts)
Buffered sockets can only operate in non-blocking mode.
Definition kbufferedsocket.cpp:73
virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len)
Writes data to the socket.
Definition kbufferedsocket.cpp:160
virtual TQ_LONG peekBlock(char *data, TQ_ULONG maxlen)
Peeks data from the socket.
Definition kbufferedsocket.cpp:138
TDEIOBufferBase * outputBuffer()
Retrieves the output buffer object.
Definition kbufferedsocket.cpp:277
void waitForConnect()
Blocks until the connection is either established, or completely failed.
Definition kbufferedsocket.cpp:310
virtual TQ_ULONG bytesToWrite() const
Returns the length of the output buffer.
Definition kbufferedsocket.cpp:282
virtual void slotWriteActivity()
Slot called when there's write activity.
Definition kbufferedsocket.cpp:367
virtual void setSocketDevice(TDESocketDevice *device)
Be sure to catch new devices.
Definition kbufferedsocket.cpp:67
virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen)
Reads data from the socket.
Definition kbufferedsocket.cpp:116
virtual void close()
Closes the socket for new data, but allow data that had been buffered for output with writeBlock to b...
Definition kbufferedsocket.cpp:82
virtual void slotReadActivity()
Slot called when there's read activity.
Definition kbufferedsocket.cpp:320
void bytesWritten(int bytes)
This signal is emitted whenever data is written.
virtual TQ_LONG waitForMore(int msecs, bool *timeout=0L)
Make use of buffers.
Definition kbufferedsocket.cpp:104
TDEBufferedSocket(const TQString &node=TQString::null, const TQString &service=TQString::null, TQObject *parent=0L, const char *name=0L)
Default constructor.
Definition kbufferedsocket.cpp:50
bool canReadLine() const
Returns true if a line can be read with readLine.
Definition kbufferedsocket.cpp:297
virtual void closeNow()
Closes the socket and discards any output data that had been buffered with writeBlock but that had no...
Definition kbufferedsocket.cpp:290
void setOutputBuffering(bool enable)
Sets the use of output buffering.
Definition kbufferedsocket.cpp:263
void setInputBuffering(bool enable)
Sets the use of input buffering.
Definition kbufferedsocket.cpp:244
A namespace to store all networking-related (socket) classes.
Definition kbufferedsocket.h:36
Trinity API Reference