public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Heng Luo" <heng.luo@intel.com>
To: "Wu, Jiaxin" <jiaxin.wu@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>,
	"Fu, Siyuan" <siyuan.fu@intel.com>
Subject: Re: [PATCH] NetworkPkg: Add HTTP Additional Event Notifications
Date: Tue, 20 Jul 2021 02:19:01 +0000	[thread overview]
Message-ID: <BL3PR11MB574557395F1842FE91E4D2A493E29@BL3PR11MB5745.namprd11.prod.outlook.com> (raw)
In-Reply-To: <DM5PR11MB13721CB1D93230B4CF3AF10CFEE29@DM5PR11MB1372.namprd11.prod.outlook.com>

Thank Jiaxin, the patch V2 is sent out following Jiaxin's comment.

> -----Original Message-----
> From: Wu, Jiaxin <jiaxin.wu@intel.com>
> Sent: Tuesday, July 20, 2021 9:45 AM
> To: Luo, Heng <heng.luo@intel.com>; devel@edk2.groups.io
> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>; Fu, Siyuan
> <siyuan.fu@intel.com>
> Subject: RE: [PATCH] NetworkPkg: Add HTTP Additional Event Notifications
> 
> For the below EDKII_HTTP_CALLBACK_EVENT definition:
> 
> All event is to retrieve the event Status, so the comments should be made clearly
> and align with code returned status, for example,
> 
> > +  /// Retrieve the host address, EventStatus:
> 
> There might be the misunderstanding you want the host address, but actually,
> you only want the status. It's better to be:
> 
> > +  /// The Status of DNS Event to retrieve the host address.
> 
> The same to all event.
> 
> 
> With above changes, the patch is good to me.
> 
> 
> 
> Thanks,
> Jiaxin
> 
> 
> 
> 
> >
> > +///
> >
> > +/// EDKII_HTTP_CALLBACK_EVENT
> >
> > +///
> >
> > +typedef enum {
> >
> > +  ///
> >
> > +  /// Retrieve the host address, EventStatus:
> >
> > +  /// EFI_SUCCESS             Operation succeeded.
> >
> > +  /// EFI_OUT_OF_RESOURCES    Failed to allocate needed resources.
> >
> > +  /// EFI_DEVICE_ERROR        An unexpected network error occurred.
> >
> > +  /// Others                  Other errors as indicated.
> >
> > +  ///
> >
> > +  HttpEventDns,
> >
> > +
> >
> > +  ///
> >
> > +  /// Initiate a nonblocking TCP connection request, EventStatus:
> >
> > +  /// EFI_SUCCESS            The connection request is successfully initiated.
> >
> > +  /// EFI_NOT_STARTED        This EFI TCP Protocol instance has not been
> > configured.
> >
> > +  /// EFI_DEVICE_ERROR       An unexpected system or network error
> > occurred.
> >
> > +  /// Others                 Other errors as indicated.
> >
> > +  ///
> >
> > +  HttpEventConnectTcp,
> >
> > +
> >
> > +  ///
> >
> > +  /// Connect one TLS session by finishing the TLS handshake process,
> > EventStatus:
> >
> > +  /// EFI_SUCCESS            The TLS session is established.
> >
> > +  /// EFI_OUT_OF_RESOURCES   Can't allocate memory resources.
> >
> > +  /// EFI_ABORTED            TLS session state is incorrect.
> >
> > +  /// Others                 Other error as indicated.
> >
> > +  ///
> >
> > +  HttpEventTlsConnectSession,
> >
> > +
> >
> > +  ///
> >
> > +  /// Initialize Http session
> >
> > +  /// EFI_SUCCESS            The initialization of session is done.
> >
> > +  /// Others                 Other error as indicated.
> >
> > +  ///
> >
> > +  HttpEventInitSession
> >
> > +} EDKII_HTTP_CALLBACK_EVENT;
> >
> > +


      reply	other threads:[~2021-07-20  2:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-19 12:06 [PATCH] NetworkPkg: Add HTTP Additional Event Notifications Heng Luo
2021-07-20  1:45 ` Wu, Jiaxin
2021-07-20  2:19   ` Heng Luo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BL3PR11MB574557395F1842FE91E4D2A493E29@BL3PR11MB5745.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox