On Dec 19, 2013, at 6:01 AM, Mauro Faccenda <facce...@gmail.com> wrote:

> Hi,
> 
> I've been writing some network applications using StdLib and right now
> I need to make some of them available as UEFI Drivers and as far as I
> could check, it should be good to not rely on StdLib.
> 
> Reading the UEFI 2.4 specification I understand that I should be using
> the EFI_SIMPLE_NETWORK_PROTOCOL to initialize the network interface
> and, as the application I am willing to port uses UDP4, I'm not sure
> if EFI_SIMPLE_NETWORK_PROTOCOL or EFI_UDP4_PROTOCOL should be used.
> 
> I also couldn't find a many examples that could help me understand it
> better how to use them.
> (I've seen the Dhcp4Dxe and Mtfp4Dxe code from MdeModulePkg, but they
> seem to be a little 'overkill' for what I need and couldn't understand
> them really well).
> 
> So, if anyone knows or have any simple code example that makes a
> network request (TCP, UDP or both) without using StdLib that can be
> shared, I'd appreciate.
> 

If you are talking pure UEFI code then take a look at:

https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.c
https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c
 - This lib supports TFTP operations. 

The Embedded Boot Loader is like a mini-shell, it is more TFTP than UDP or TCP. 

Thanks,

Andrew Fish

> 
> Thanks in advance,
> 
> Mauro
> 
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to