o removed bytesAvailable member function from inBuf because
we nolonger check the bytes in the socket with an ioctl o removed incomingBytesPresent virtual function from inBufClient interface because we nolonger check the bytes in the socket with an ioctl
This commit is contained in:
@@ -51,7 +51,6 @@ public:
|
||||
// this is a hack for a Solaris IP kernel feature
|
||||
enum fillParameter { fpNone, fpUseBroadcastInterface };
|
||||
virtual unsigned getDebugLevel () const = 0;
|
||||
virtual bufSizeT incomingBytesPresent () const = 0;
|
||||
virtual fillCondition xRecv ( char *pBuf, bufSizeT nBytesToRecv,
|
||||
enum fillParameter parm, bufSizeT &nByesRecv ) = 0;
|
||||
virtual void hostName ( char *pBuf, unsigned bufSize ) const = 0;
|
||||
@@ -66,7 +65,6 @@ public:
|
||||
bufSizeT ioMinSizeIn );
|
||||
virtual ~inBuf ();
|
||||
bufSizeT bytesPresent () const;
|
||||
bufSizeT bytesAvailable () const;
|
||||
bool full () const;
|
||||
inBufClient::fillCondition fill (
|
||||
inBufClient::fillParameter parm = inBufClient::fpNone );
|
||||
@@ -107,17 +105,6 @@ inline bufSizeT inBuf::bytesPresent () const
|
||||
return this->bytesInBuffer - this->nextReadIndex;
|
||||
}
|
||||
|
||||
//
|
||||
// inBuf::bytesAvailable()
|
||||
//
|
||||
inline bufSizeT inBuf::bytesAvailable () const
|
||||
{
|
||||
bufSizeT bp;
|
||||
bp = this->bytesPresent ();
|
||||
bp += this->client.incomingBytesPresent ();
|
||||
return bp;
|
||||
}
|
||||
|
||||
//
|
||||
// inBuf::full()
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user