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

  • Home
  • SEARCH
  • 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 9050865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:45:35+00:00 2026-06-16T12:45:35+00:00

I want to write the application (daemon) what synchronizes files and runs in background.

  • 0

I want to write the application (daemon) what synchronizes files and runs in background. And i want to use only a part of bandwidth (better in percents, but fixed limit is acceptable) because full access to bandwidth will interfere user’s applications. How can i do it programmaticaly?
ipfw affects any application (and i want limit only my app) and in apple manual page it is deprecated. And i use https port, so i cant just throttle connection to that port.
Are there any other solutions?
Thank you.

  • 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-16T12:45:36+00:00Added an answer on June 16, 2026 at 12:45 pm

    It’s not clear if this is a case where you know what the target bandwidth is, or if this is a case where you don’t know.

    If you know that the available bandwidth is 100KB/s then the simplest (and probably best) thing to do is in your application do the math and meter the amount you are reading and writing to the socket. That is run counters of amount read and time passed and enforce sleeps in your loops to ensure that you achieve those limits in aggregate.

    If you don’t know what the target is, (and I don’t really know how you could, given that all environments are different) then it gets a bit more complex. Most applications simply provide a way for the user to pick a bandwidth ceiling for the app. This is the only portable way.

    For OS X-only apps you can rely on specific additional features, but OS X has transitioned across firewall implementations across versions, and they are not application-aware firewalls. Therefore, if you want to use their functionality to throttle your application you’ll have to set rules based on host and/or port that are likely to only match your application.

    There are more esoteric actions you could take implementing NETBLT as your communications protocol instead of plain TCP to indicate your traffic is “bulk” or large and latency insensitive. But most applications just give the user control.

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

Sidebar

Related Questions

I want to write an application using openstreetmaps rather than mkmapview, but I'm not
I want to write a web application and want to use Ruby. I have
I want a way to write a daemon in a shell script, which runs
I want to write application on android and windows which will use bluetooth. In
I want to write application on Android that starts in background when user launches
I want to write Android application that will play HLS video. I use default
I want to write an application that launches another app using Process.Start , but
I want to write a WPF-application with support of touch events. But, I have
I want to write application for digital signage but I want it to run
I want to write a application which can use to generate .exe program automatically

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.