Experts,
I'd like to use the TcpIoLib and UdpIoLib, but I spend way too much time
dealing with the NET_BUF struct. I must be doing things the hard way.
What is the best way to set up a NET_BUF for the following two scenarios?
Is it different for asynchronous vs. synchronous? Are there any other
considerations?
Scenario 1)
I have UINTN DataSize and UINT8 *Data and would like to send Data using
TcpIoTransmit() or UdpIoSendDatagram().
Scenario 2)
I have UINT8 Stream[STREAM_SIZE] and would like to receive things into
Stream using TcpIoReceive() or UdpIoRecvDatagram().
I've resorted to just having my TcpIoLib/UdpIoLib that takes Data directly
and dumps into Stream directly, thereby avoiding NET_BUF. This works just
fine, but I would rather use what's already out there. NET_BUF is giving me
a headache, though.
Thank you for any help!
Thomas
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel