(Page 12 of 14 in this chapter) Version
mspReleaseBuffer
Description
- Returns an event buffer to the MSPP service library.
Prototype
- DWORD mspReleaseBuffer (MSPHD msphd,
void *buffer)
- msphd The MSPP handle of the channel or endpoint that sent the data buffer.
- buffer Address of the buffer to be released.
Return Values
Events
- None.
Details
- This function returns retrieved event buffers so the application can reuse them.
- If an application uses an endpoint or a channel with an attached buffer, but does not return the buffer (via mspReleaseBuffer), the number of events received will be limited to five. Subsequent events will be dropped.
See Also
- mspSendQuery, mspSendCommand
Example
if(Event.size != 0 && Event.buffer != NULL )
{
ret = mspReleaseBuffer( Event.objHd, Event.buffer);
Event.buffer = NULL;
Event.size = 0;
if ( ret != SUCCESS)
return FAILURE;
}
(Page 12 of 14 in this chapter) Version
Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights
reserved.