Hi,
You could use gBS->LocateHandleBuffer() to locate the controller handle which
has the service installed. In your example, you could use
gEfiTcp4ServiceBindingProtocolGuid as protocol GUID.
Best Regards,
Ye Ting
From: Ritesh Tiwari [mailto:ritesh.tiw...@seagate.com]
Sent: Wednesday, March 11, 2015 3:14 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Controller Handle in NetLibCreateServiceChild()
Hi,
I am trying to create a TCP4 child using NetLibCreateServiceChild(). The first
input parameter of this API is a controller (The controller which has the
service installed). My very basic question is how to get this controller handle?
Here is the signature of this API -
@param[in] Controller The controller which has the service
installed.
@param[in] Image The image handle used to open service.
NetLibCreateServiceChild (
IN EFI_HANDLE Controller,
IN EFI_HANDLE Image,
IN EFI_GUID *ServiceBindingGuid,
IN OUT EFI_HANDLE *ChildHandle
)
The main goal is to create a TCP connection to a remote host.
Thanks.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel