34 #ifndef PTLIB_CHANNEL_H 35 #define PTLIB_CHANNEL_H 63 virtual int_type
overflow(int_type = EOF);
66 virtual pos_type
seekoff(off_type, ios_base::seekdir, ios_base::openmode = ios_base::in | ios_base::out);
67 virtual pos_type
seekpos(pos_type, ios_base::openmode = ios_base::in | ios_base::out);
148 virtual PINDEX HashFunction()
const;
167 virtual PString GetName()
const;
174 int GetHandle()
const;
185 virtual PChannel * GetBaseReadChannel()
const;
196 virtual PChannel * GetBaseWriteChannel()
const;
251 virtual PINDEX GetLastReadCount()
const;
260 virtual int ReadChar();
306 virtual void OnReadComplete(
321 void SetWriteTimeout(
380 virtual PINDEX GetLastWriteCount()
const;
419 virtual void OnWriteComplete(
436 ShutdownReadAndWrite = 2
457 virtual bool SetLocalEcho(
464 virtual bool FlowControl(
const void * flowData);
521 void AbortCommandString();
647 const VectorOfSlice & slices
660 const VectorOfSlice & slices
700 int ReadCharWithTimeout(
719 int lastErrorNumber[NumErrorGroups+1];
742 #include "msos/ptlib/channel.h" 744 #include "unix/ptlib/channel.h" 750 #endif // PTLIB_CHANNEL_H Operation fail due to insufficient privilege.
Definition: channel.h:538
PINDEX lastWriteCount
Number of byte last written by the Write() function.
Definition: channel.h:723
PTimeInterval readTimeout
Timeout for read operations.
Definition: channel.h:725
Open fail due to file already existing.
Definition: channel.h:534
This class defines an arbitrary time interval to millisecond accuracy.
Definition: timeint.h:55
Definition: channel.h:530
Array of characters.
Definition: array.h:551
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
Operation failed due to a timeout.
Definition: channel.h:548
Error during other operation, eg Open()
Definition: channel.h:568
PTimeInterval writeTimeout
Timeout for write operations.
Definition: channel.h:727
Operation fail due to bad parameters.
Definition: channel.h:542
void * iov_base
Definition: channel.h:630
Comparison
Result of the comparison operation performed by the Compare() function.
Definition: object.h:1184
size_t iov_len
Definition: channel.h:631
friend class PChannel
Definition: channel.h:82
Open fail due to device or file not found.
Definition: channel.h:532
PBoolean SetBufferSize(PINDEX newSize)
ShutdownValue
Definition: channel.h:433
Errors
Normalised error codes.
Definition: channel.h:529
PINDEX lastReadCount
Number of byte last read by the Read() function.
Definition: channel.h:721
std::vector< Slice > VectorOfSlice
Definition: channel.h:635
BOOL PBoolean
Definition: object.h:102
High level protocol failure.
Definition: channel.h:556
Error during Read() operation.
Definition: channel.h:566
Abstract class defining I/O channel semantics.
Definition: channel.h:107
virtual pos_type seekoff(off_type, ios_base::seekdir, ios_base::openmode=ios_base::in|ios_base::out)
virtual pos_type seekpos(pos_type, ios_base::openmode=ios_base::in|ios_base::out)
Operations buffer was too small for data.
Definition: channel.h:552
The character string class.
Definition: pstring.h:108
virtual int_type underflow()
virtual int_type overflow(int_type=EOF)
PChannelStreamBuffer & operator=(const PChannelStreamBuffer &sbuf)
ErrorGroup
Error groups.
Definition: channel.h:565
Operation fail due to channel not being open yet.
Definition: channel.h:546
Miscellaneous error.
Definition: channel.h:554
Operation fail due to insufficient memory.
Definition: channel.h:544
Error during Write() operation.
Definition: channel.h:567
Open fail due to device already open for exclusive use.
Definition: channel.h:540
Operation was interrupted.
Definition: channel.h:550
Structure that defines a "slice" of memory to be written to.
Definition: channel.h:629
Write fail due to disk full.
Definition: channel.h:536
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
PChannelStreamBuffer(PChannel *chan)
int os_handle
The operating system file handle return by standard open() function.
Definition: channel.h:715