Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:02:03+00:00 2026-06-15T05:02:03+00:00

The client initiating long polling, calls a method on server and passes in an

  • 0

The client initiating long polling, calls a method on server and passes in an instance of AsyncCallback which contains the callback delegate which will be invoked when server asynchronously gets back to the client.

Now my understanding on this is limited but it appears that in BasicHttp WCF the AsyncCallback parameter is serialised and sent to server which then de-serialises it, caches it and ultimately invokes it to “get back” to the client.

Firstly, is the above explanation correct? Secondly, how does the AsyncCallback invoked on a client all the way across network?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:02:04+00:00Added an answer on June 15, 2026 at 5:02 am

    The connection is kept open so the server responds over the existing connection, including the callback handler name in the response.

    The client understands the format of the message and can then invoke the appropriate local method (based on the callback handler) with the data from the server response.

    I usually prefer not to quote Wikipedia but in this instance, it’s not a bad explanation of long polling…

    Long polling is a variation of the traditional polling technique and
    allows emulation of an information push from a server to a client.
    With long polling, the client requests information from the server in
    a similar way to a normal poll. However, if the server does not have
    any information available for the client, instead of sending an empty
    response, the server holds the request and waits for some information
    to be available. Once the information becomes available (or after a
    suitable timeout), a complete response is sent to the client. The
    client will normally then immediately re-request information from the
    server, so that the server will almost always have an available
    waiting request that it can use to deliver data in response to an
    event. In a web/AJAX context, long polling is also known as Comet
    programming.

    Clarification

    • The client sends a POST to the server, including a callback handle and keeps the connection open
    • A length of time later, the server responds with the callback handle from the POST and the response data (This happens when you call the AsyncCallback‘s methods on the server)
    • The Client reads the response from the server, identifies the callback handle that has been returned and uses that to identify which method to execute,
    • The client executes the method specified by the callback handle and passes in the rest of the server response.

    This is similar to the way JSONP works (The callback part, not long polling), if you’re familiar with that? Essentially, the Callback handle is only passed to the server so that it can be sent back with the response and allow the client to call the correct method.

    There are additional checks going on under the hood to make sure that only the intended methods are called and a malicious server can’t just execute any method it chooses in client code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Client is requesting a Lightbox gallery which will, on click, provide image, description and
Client + Server are both written in Javascript. I don't have a master game
Client code is pretty simple: <form action=DDServlet method=post> <input type=text name=customerText> <select id=customer> <option
I've got a Java client that needs to recursively call a server to retrieve
Client is requesting functionality which would allow WordPress to generate list of child pages,
I'm working on a client server app using the Tracer Bullet approach advocated in
So for an iOS client of mine, I'm initiating a POST to upload a
I've written Client Server application for Android mobile and PC using bluetooth connectivity, in
Client table contains first name, last name, email, and department. I need to compare
Client/server desktop application using C#, WCF, WPF. Since pretty much every action is going

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.