public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [NetworkPkg] Clarification on EFI_TCP6_PROTOCOL Destruction Behavior
@ 2022-07-13 16:44 Ayush Singh
  2022-07-13 17:36 ` Michael D Kinney
  0 siblings, 1 reply; 4+ messages in thread
From: Ayush Singh @ 2022-07-13 16:44 UTC (permalink / raw)
  To: devel; +Cc: michael.d.kinney, mikuback, jabeena.b.gaibusab, jiewen.yao

Hello everyone. I am trying to implement Network Support in Rust std for 
UEFI. While trying to use the TCP6_PROTOCOL, I am not quite sure how to 
deal with destructing the protocol. Since TCP6_PROTOCOL is created using 
a EFI_SERVICE_BINDING_PROTCOL, it should be destroyed using the 
`DestroyChild()` method. However, do I also have to call 
`TCP6_PROTOCOL->Close()` before this or will `DestroyChild()` do that 
implicitly? If I do have to call this method myself, then do I need to 
do `DestroyChild()` in the `CloseToken->Event->NotifyFunction` or is it 
fine to `DestroyChild()` after calling `Close()` (event though `Close` 
is nonblocking) ?


Also, it would be great if someone can point me to some TCP Network 
applications. I did find some but most were either drivers, or were very 
simple and did not do any Cleanup stuff.


Note: Rust does not need the user to close the connection manually. It 
is closed once the object is dropped (which is done once the object 
owner goes out of scope at compile time).


Yours Sincerely

Ayush Singh


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-15 21:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-13 16:44 [NetworkPkg] Clarification on EFI_TCP6_PROTOCOL Destruction Behavior Ayush Singh
2022-07-13 17:36 ` Michael D Kinney
2022-07-13 18:30   ` Ayush Singh
2022-07-15 21:03     ` Ayush Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox