25#ifndef KBUFFEREDSOCKET_H 
   26#define KBUFFEREDSOCKET_H 
   30#include <tqvaluelist.h> 
   31#include "kstreamsocket.h" 
   32#include <tdelibs_export.h> 
   38class TDEBufferedSocketPrivate;
 
   71  TDEBufferedSocket(
const TQString& node = TQString::null, 
const TQString& service = TQString::null,
 
   72          TQObject* parent = 0L, 
const char *name = 0L);
 
   88  virtual bool setSocketOptions(
int opts);
 
  102  virtual TQ_LONG bytesAvailable() 
const;
 
  107  virtual TQ_LONG waitForMore(
int msecs, 
bool *timeout = 0L);
 
  112  virtual TQ_LONG readBlock(
char *data, TQ_ULONG maxlen);
 
  120  virtual TQ_LONG readBlock(
char *data, TQ_ULONG maxlen, 
TDESocketAddress& from);
 
  125  virtual TQ_LONG peekBlock(
char *data, TQ_ULONG maxlen);
 
  133  virtual TQ_LONG peekBlock(
char *data, TQ_ULONG maxlen, 
TDESocketAddress &from);
 
  138  virtual TQ_LONG writeBlock(
const char *data, TQ_ULONG len);
 
  146  virtual TQ_LONG writeBlock(
const char *data, TQ_ULONG len, 
const TDESocketAddress& to);
 
  151  virtual void enableRead(
bool enable);
 
  156  virtual void enableWrite(
bool enable);
 
  161  void setInputBuffering(
bool enable);
 
  171  void setOutputBuffering(
bool enable);
 
  181  virtual TQ_ULONG bytesToWrite() 
const;
 
  189  virtual void closeNow();
 
  194  bool canReadLine() 
const;
 
  199  TQCString readLine();
 
  205  void waitForConnect();
 
  217  virtual void slotReadActivity();
 
  222  virtual void slotWriteActivity();
 
  234  TDEBufferedSocketPrivate *d;
 
SocketState
Socket states.
 
void bytesWritten(int bytes)
This signal is emitted whenever data is written.
 
A generic socket address.
 
Low-level socket functionality.
 
base for I/O buffer implementation
 
A namespace to store all networking-related (socket) classes.