1 / 4

Polling vs. Callback

Polling vs. Callback. In the absence of callback, a client will have to poll a passive server repeatedly if it needs to be notified that an event has occurred at the server end. The Hello Application with Callback. How. Client callback: To provide client callback, the client-side software

kartis
Download Presentation

Polling vs. Callback

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Polling vs. Callback In the absence of callback, a client will have to poll a passive server repeatedly if it needs to be notified that an event has occurred at the server end.

  2. The Hello Application with Callback

  3. How • Client callback: • To provide client callback, the client-side software • supplies a remote interface, • instantiate an object which implements the interface, • passes a reference to the object to the server via a remote method call to the server. • The object server: • collects these client references in a data structure. • when the awaited event occurs, the object server invokes the callback method (defined in the client remote interface) to pass data to the client. • Two sets of stub-skeletons are needed: one for the server remote interface, the other one for the client remote interface.

  4. Callback application file

More Related