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 6208071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:44:39+00:00 2026-05-24T05:44:39+00:00

I would like to send data from a server to a client, continuously (streaming),

  • 0

I would like to send data from a server to a client, continuously (streaming), without the need for the client to continuously loop through and check for any data. I think I am right in believing this is the observer design pattern? How is this possible?

Could someone provide me with a list of things I can google? How is the observer pattern aspect implemented?

Thanks

  • 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-05-24T05:44:40+00:00Added an answer on May 24, 2026 at 5:44 am

    The observer design pattern is slightly different from what you’re describing:

    enter image description here

    Note that each observer gets notified by the “observable” object; so if you have a server that’s continuously streaming data, then would you expect the server to “notify” you and what would you expect the server to notify you of? Every packet it sends you? Every chunk of packets?

    In short: no, you can’t implement the observer pattern on a client/server application. There is no (easy) way for a server to invoke a notify method on your client app and if your client gets disconnected, then it won’t unregister from the observable.

    So back to your question… you’re limited by the architecture: blocking sockets (tcp/udp) all work by blocking until you receive data. Once you receive data, you have to loop through and call receive again in order to continuously get more data. An alternative is to use asynchronous sockets:

    • http://www.nightmare.com/medusa/async_sockets.html
    • Boost Asynchronous UDP (note, I’ve never used it, but it seems like it’s what you might want)
    • Or just Google Asynchronous UDP sockets.

    Asynchronous socket communication is probably as close you will get to the observer pattern. Furthermore, you want to use the UDP protocol because you have streaming data and UDP is specifically designed for streaming data. If you don’t want to miss any packets (due to the unreliability of UDP), then you can use reliable UDP.

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

Sidebar

Related Questions

I would like to send large files from the server to the client using
I would like to send mail from a script on a Windows Server 2003
I have a requirement where I need to send some data from my server
Some of my data are 64-bit integers. I would like to send these to
I would like to send some keystrokes from a C++ program into another window.
I would like to send an email from an application that contains the current
I'm using a Rails application and would like to send/receive text messages through my
I would like to quickly send email from the command line. I realize there
How can I pass data from client to server? I have a very simple
I would like to expose some data to client applications via HTTP. For example,

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.