Public Member Functions | |
IEndpoint () | |
Default constructor. | |
virtual bool | OnIOCancelled (AsyncIO *pAIO) |
Called if an asynchronous IO was cancelled. | |
virtual bool | OnIOCompleted (AsyncIO *pAIO) |
Called if an asynchronous IO completed. | |
virtual bool | OnIOFailed (AsyncIO *pAIO) |
Called if an asynchronous IO failed. | |
virtual bool | OnIOSuccess (AsyncIO *pAIO) |
Called if an asynchronous IO completed successfully. | |
virtual bool | OnIOTimedOut (AsyncIO *pAIO) |
Called if an asynchronous IO times out. | |
~IEndpoint () | |
Default destructor. | |
Protected Member Functions | |
Endpoint *const | GetEndpoint () |
Gets the endpoint this interface is assigned to. |
Do NEVER delete the AsyncIO objects passed to you in callback functions. Use a return value of false to indicate the API that it should delete the object after all callbacks completed. Functions which are not overloaded will always return true to keep the AsyncIO object alive. The return value has no effect if AsyncIO::Flags::FIRE_AND_FORGET is set. In this case the object is always deleted.
EasyUSB::IEndpoint::IEndpoint | ( | ) |
Default constructor.
EasyUSB::IEndpoint::~IEndpoint | ( | ) |
Default destructor.
Endpoint* const EasyUSB::IEndpoint::GetEndpoint | ( | ) | [inline, protected] |
Gets the endpoint this interface is assigned to.
virtual bool EasyUSB::IEndpoint::OnIOCancelled | ( | AsyncIO * | pAIO | ) | [inline, virtual] |
Called if an asynchronous IO was cancelled.
pAIO | A pointer to the AsyncIO. |
virtual bool EasyUSB::IEndpoint::OnIOCompleted | ( | AsyncIO * | pAIO | ) | [inline, virtual] |
Called if an asynchronous IO completed.
pAIO | A pointer to the completed AsyncIO. |
virtual bool EasyUSB::IEndpoint::OnIOFailed | ( | AsyncIO * | pAIO | ) | [inline, virtual] |
Called if an asynchronous IO failed.
pAIO | A pointer to the AsyncIO. |
virtual bool EasyUSB::IEndpoint::OnIOSuccess | ( | AsyncIO * | pAIO | ) | [inline, virtual] |
Called if an asynchronous IO completed successfully.
pAIO | A pointer to the AsynciO. |
virtual bool EasyUSB::IEndpoint::OnIOTimedOut | ( | AsyncIO * | pAIO | ) | [inline, virtual] |