proxygen
BufferCallback Class Reference

#include <AsyncSocketTest.h>

Inheritance diagram for BufferCallback:
folly::AsyncTransport::BufferCallback

Public Member Functions

 BufferCallback ()
 
void onEgressBuffered () override
 
void onEgressBufferCleared () override
 
bool hasBuffered () const
 
bool hasBufferCleared () const
 
- Public Member Functions inherited from folly::AsyncTransport::BufferCallback
virtual ~BufferCallback ()
 

Private Attributes

bool buffered_ {false}
 
bool bufferCleared_ {false}
 

Detailed Description

Definition at line 182 of file AsyncSocketTest.h.

Constructor & Destructor Documentation

BufferCallback::BufferCallback ( )
inline

Definition at line 184 of file AsyncSocketTest.h.

184 : buffered_(false), bufferCleared_(false) {}

Member Function Documentation

bool BufferCallback::hasBufferCleared ( ) const
inline

Definition at line 198 of file AsyncSocketTest.h.

Referenced by TEST().

198  {
199  return bufferCleared_;
200  }
bool BufferCallback::hasBuffered ( ) const
inline

Definition at line 194 of file AsyncSocketTest.h.

Referenced by TEST().

194  {
195  return buffered_;
196  }
void BufferCallback::onEgressBufferCleared ( )
inlineoverridevirtual

Implements folly::AsyncTransport::BufferCallback.

Definition at line 190 of file AsyncSocketTest.h.

190  {
191  bufferCleared_ = true;
192  }
void BufferCallback::onEgressBuffered ( )
inlineoverridevirtual

Implements folly::AsyncTransport::BufferCallback.

Definition at line 186 of file AsyncSocketTest.h.

186  {
187  buffered_ = true;
188  }

Member Data Documentation

bool BufferCallback::bufferCleared_ {false}
private

Definition at line 204 of file AsyncSocketTest.h.

bool BufferCallback::buffered_ {false}
private

Definition at line 203 of file AsyncSocketTest.h.


The documentation for this class was generated from the following file: