Hi Ritesh,

Load TCP4 driver will install TCP4 Driver Binding protocol and component name 
protocol, while the Tcp4ServiceBindingProtocol is installed only when TCP4 
driver is started successfully. To start TCP4 driver, the required modules like 
IP/ARP/MNP/SNP,etc. need be connected and started first. As I mentioed in 
another mail, if you are using NT32 platform, please check whether you have 
your SnpNt32Dxe module working now.

Best Regards,
Ye Ting


From: Ritesh Tiwari [mailto:ritesh.tiw...@seagate.com]
Sent: Wednesday, March 11, 2015 10:40 AM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Controller Handle in NetLibCreateServiceChild()

Thanks Ye Ting for help.

Yes I am doing the same.

  Status  = SystemTable->BootServices->LocateHandleBuffer (
                   ByProtocol,
                   &gEfiTcp4ServiceBindingProtocolGuid,
                   NULL,
                   &HandleCount,
                   &Handles
                   );


But Status returned is failure. If TCP4Dxe driver is loaded and I am able to 
connect to it from the Shell, should not it be able to locate this handle for 
protocol gEfiTcp4ServiceBindingProtocolGuid?

Thanks,
Ritesh

On Wed, Mar 11, 2015 at 6:59 AM, Ye, Ting 
<ting...@intel.com<mailto:ting...@intel.com>> wrote:
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<mailto:ritesh.tiw...@seagate.com>]
Sent: Wednesday, March 11, 2015 3:14 AM
To: edk2-devel@lists.sourceforge.net<mailto: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<mailto:edk2-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
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

Reply via email to