From a88c31639bb24c73383a4528a5b77066e805148b Mon Sep 17 00:00:00 2001 From: lpleahy Date: Fri, 30 Sep 2011 23:02:35 +0000 Subject: Update the sockets library code * Passes conformance and functional tests. * Builds with GCC 4.4 compiler. Signed-off by: lpleahy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12497 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLib/UseSocketDxe/UseSocketDxe.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'StdLib/UseSocketDxe') diff --git a/StdLib/UseSocketDxe/UseSocketDxe.c b/StdLib/UseSocketDxe/UseSocketDxe.c index 0b7194c234..6074143264 100644 --- a/StdLib/UseSocketDxe/UseSocketDxe.c +++ b/StdLib/UseSocketDxe/UseSocketDxe.c @@ -23,12 +23,26 @@ /** - Connect to the socket driver + Connect to the EFI socket library - @param [in] ppSocketProtocol Address to receive the socket protocol address + This routine establishes a connection to the socket driver + and returns the API (::EFI_SOCKET_PROTOCOL address) to the + socket file system layer in BsdSocketLib. This routine looks for + the gEfiSocketServiceBindingProtocolGuid to locate the socket + driver. This routine then creates a child handle and locates + the gEfiSocketProtocolGuid protocol on that handle to get the + ::EFI_SOCKET_PROTOCOL structure address. + + This routine is called from the ::socket routine in BsdSocketLib + to create the data structure and initialize the API for a socket. + Note that this implementation is only used by socket applications + that link directly to UseSocketDxe. + + @param [in] ppSocketProtocol Address to receive the ::EFI_SOCKET_PROTOCOL + structure address + + @return Value for ::errno, zero (0) indicates success. - @retval 0 Successfully returned the socket protocol - @retval other Value for errno **/ int EslServiceGetProtocol ( @@ -148,7 +162,7 @@ EslServiceGetProtocol ( } else { DEBUG (( DEBUG_ERROR, - "ERROR - No socket service binding protocol, Status: %r\r\n", + "ERROR - Socket driver not loaded, Status: %r\r\n", Status )); RetVal = ENODEV; } -- cgit v1.2.3