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 <[email protected]> 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:[email protected]]
> *Sent:* Wednesday, March 11, 2015 3:14 AM
> *To:* [email protected]
> *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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to