]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/Protocol/EfiSocket.h
Fixed close for socket to properly release the socket context structure and the handle.
[mirror_edk2.git] / StdLib / Include / Protocol / EfiSocket.h
index 2664f01bdb7ecd871080dd625331dca378c2855e..022a6a5f224de902135c9ae7c4860bd345f68f98 100644 (file)
@@ -612,6 +612,26 @@ AcceptNB (
   socklen_t * address_len\r
   );\r
 \r
+/**\r
+  Free the socket resources\r
+\r
+  This releases the socket resources allocated by calling\r
+  EslServiceGetProtocol.\r
+\r
+  This routine is called from the ::close routine in BsdSocketLib\r
+  to release the socket resources.\r
+\r
+  @param [in] pSocketProtocol   Address of an ::EFI_SOCKET_PROTOCOL\r
+                                structure\r
+\r
+  @return       Value for ::errno, zero (0) indicates success.\r
+\r
+ **/\r
+int\r
+EslServiceFreeProtocol (\r
+  IN EFI_SOCKET_PROTOCOL * pSocketProtocol\r
+  );\r
+\r
 /**\r
   Connect to the EFI socket library\r
 \r