Hi,
I'm having a strange issue with SIO_reclaim().
I created an input stream with 1 buffer. After allocating memory for the buffer I SIO_issue the buffer to the input stream and call SIO_reclaim right after. The address of the buffer issued to the input stream is 0x87f30080. The buffer that is returned with the first call to SIO_reclaim has an address of 0x87f30000. The next call to SIO_reclaim then returns the original buffer I allocated (0x87f30080) and the process continues like that .. alternating between these two buffers. I don't know where the second buffer (0x87f30000) is coming from as I only allocated and issued one buffer to the input stream.
Does the SIO create an extra buffer always? There is no mention of that in the documentation. Does the SIO automatically create a buffer if SIO_issue has not yet been called when data comes in on the underlying transport layer?
Your help is greatly appreciated.
Thanks,
Anthony.