- pISourceUtil:[in] Pointer to the ISourceUtil Interface object.
- ps:[in] ISocket Interface object to read from.
- ppirs:[in/out] Pointer to the interface pointer to be filled with resulting ISource Interface object.
int32 ISOURCEUTIL_SourceFromSocket(ISourceUtil * pISourceUtil, ISocket * ps, ISource ** ppirs);
AEE_ENOMEMORY, if the function can't make a new ISource Interface object.
Note that technically the data is consumed out of the actual "socket" source and put into the IPeek buffer, but the data can be retrieved even after checking it out. When IPEEK_Advance is called the data will be considered "consumed" fully.