Fovia's C++ Client/Server API
|
Public Member Functions | |
virtual signed int | AskInterface (const BGUID *piid, struct IRoot **ppr)=0 |
virtual signed int | DecRef ()=0 |
virtual signed int | Flush ()=0 |
virtual signed int | IncRef ()=0 |
virtual signed int | Peek ()=0 |
virtual signed int | ReadWrite (bool breadwrite, void *pbuf, h_uint32 sz, h_uint32 *sze)=0 |
![]() | |
template<class T > | |
signed int | AskInterface (T **pp) |
Simple stream interface
|
pure virtual |
ask object for another interface
Implements IRoot.
|
pure virtual |
decrements the reference count for the object
Implements IRoot.
|
pure virtual |
If the output stream on this stream is buffered, this function will ensure that all currently written data is applied to the stream.
|
pure virtual |
increments the reference count for the object
Implements IRoot.
|
pure virtual |
Returns S_OK if no more data available to read on the stream, E_FAIL if there is more data available. You may use Peek calls to ensure that client/server calls are in sync.
|
pure virtual |
breadwrite | – if equal to true the function performs read operations, otherwise performs write operation |
pbuf | – pointer to buffer or data to be read into or written |
sz | – size of the buffer or data |
sze | – amount of data read or written |