Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Setting maximum speed of ethernet adapter

Setting maximum speed of ethernet adapter

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminperformance
11 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    s_k
    wrote on last edited by
    #1

    Hi, I need to set the maximum speed of network card programatically, eg. when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps. Any suggestion helps much. Standa.

    N 1 Reply Last reply
    0
    • S s_k

      Hi, I need to set the maximum speed of network card programatically, eg. when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps. Any suggestion helps much. Standa.

      N Offline
      N Offline
      Nitron
      wrote on last edited by
      #2

      :wtf: s_k wrote: when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps. :confused: Why would you want to do this? Most 100Mbps NICs are auto-negotiate. That is, if the server or target machine only runs 10Mbps or your router or hub is only 10Mbps, then the NIC will only negotiate 10Mbps on the hardware abstraction layer with no intervention from the OS, let alone your program. Now, if you are writing some proprietary device driver for an ethernet coffee machine or something and really need to do this, then I must admit I am out of my league. - Nitron


      "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

      S 1 Reply Last reply
      0
      • N Nitron

        :wtf: s_k wrote: when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps. :confused: Why would you want to do this? Most 100Mbps NICs are auto-negotiate. That is, if the server or target machine only runs 10Mbps or your router or hub is only 10Mbps, then the NIC will only negotiate 10Mbps on the hardware abstraction layer with no intervention from the OS, let alone your program. Now, if you are writing some proprietary device driver for an ethernet coffee machine or something and really need to do this, then I must admit I am out of my league. - Nitron


        "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

        S Offline
        S Offline
        s_k
        wrote on last edited by
        #3

        I admit it sounds strange, but I've FTP server that is too fast for weak machine (max. 32 MB RAM) with Win9x and on fast (at least 100mbps) LAN. The only thing that helps is to slow down the receiving/sending of data (to 10mbps). Hope you grasped ;)

        T M S 3 Replies Last reply
        0
        • S s_k

          I admit it sounds strange, but I've FTP server that is too fast for weak machine (max. 32 MB RAM) with Win9x and on fast (at least 100mbps) LAN. The only thing that helps is to slow down the receiving/sending of data (to 10mbps). Hope you grasped ;)

          T Offline
          T Offline
          Tim Smith
          wrote on last edited by
          #4

          Are you saying that the FTP program is consuming too many resources that you wish to use? If so, you might try lowering the priority of the FTP server. Then it won't consume CPU resources while you wish to use the machine. Tim Smith I'm going to patent thought. I have yet to see any prior art.

          S 1 Reply Last reply
          0
          • T Tim Smith

            Are you saying that the FTP program is consuming too many resources that you wish to use? If so, you might try lowering the priority of the FTP server. Then it won't consume CPU resources while you wish to use the machine. Tim Smith I'm going to patent thought. I have yet to see any prior art.

            S Offline
            S Offline
            s_k
            wrote on last edited by
            #5

            It may help as well, but not sure if it is 100% solution...

            N 1 Reply Last reply
            0
            • S s_k

              It may help as well, but not sure if it is 100% solution...

              N Offline
              N Offline
              Nitron
              wrote on last edited by
              #6

              s_k wrote: It may help as well, but not sure if it is 100% solution... :rolleyes: Well, you can always upgrade the machine :cool: A nice P4 with a gig of ram or two should suffice... ;P - Nitron


              "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

              S 1 Reply Last reply
              0
              • S s_k

                I admit it sounds strange, but I've FTP server that is too fast for weak machine (max. 32 MB RAM) with Win9x and on fast (at least 100mbps) LAN. The only thing that helps is to slow down the receiving/sending of data (to 10mbps). Hope you grasped ;)

                M Offline
                M Offline
                Moak
                wrote on last edited by
                #7

                s_k wrote: The only thing that helps is to slow down the receiving/sending of data (to 10mbps). ...or reprogramming your network core ;)

                S 1 Reply Last reply
                0
                • N Nitron

                  s_k wrote: It may help as well, but not sure if it is 100% solution... :rolleyes: Well, you can always upgrade the machine :cool: A nice P4 with a gig of ram or two should suffice... ;P - Nitron


                  "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

                  S Offline
                  S Offline
                  s_k
                  wrote on last edited by
                  #8

                  Well, such a machine I've at home, but it's commercial product and MUST be compatible even with the worst sh**s..;)

                  1 Reply Last reply
                  0
                  • M Moak

                    s_k wrote: The only thing that helps is to slow down the receiving/sending of data (to 10mbps). ...or reprogramming your network core ;)

                    S Offline
                    S Offline
                    s_k
                    wrote on last edited by
                    #9

                    Maybe, but would you be happy to rewrite 50,000 lines of code due to this one bug, appearing only on very weak machines | win9x | fast LAN (at least 100mbps) ??? I think admin should be mor0n when running FTP server on such a shit...

                    1 Reply Last reply
                    0
                    • S s_k

                      I admit it sounds strange, but I've FTP server that is too fast for weak machine (max. 32 MB RAM) with Win9x and on fast (at least 100mbps) LAN. The only thing that helps is to slow down the receiving/sending of data (to 10mbps). Hope you grasped ;)

                      S Offline
                      S Offline
                      Shaun Wilde
                      wrote on last edited by
                      #10

                      eh - too fast? how can it be too fast? resources memory usage? have you tired other ftp sever versions maybe find one that is less resource hungry. easier way change the network card to a 10mbps only one

                      Technically speaking the dictionary would define Visual Basic users as programmers.
                      But here again, a very generalized, liberal definition is being employed and it's wrong
                      - just plain wrong - Tom Archer 5/12/02

                      S 1 Reply Last reply
                      0
                      • S Shaun Wilde

                        eh - too fast? how can it be too fast? resources memory usage? have you tired other ftp sever versions maybe find one that is less resource hungry. easier way change the network card to a 10mbps only one

                        Technically speaking the dictionary would define Visual Basic users as programmers.
                        But here again, a very generalized, liberal definition is being employed and it's wrong
                        - just plain wrong - Tom Archer 5/12/02

                        S Offline
                        S Offline
                        s_k
                        wrote on last edited by
                        #11

                        However it may sound strange, it's true. Yes, I've already tried other FTP servers - but they are much smaller than the our one. I think it's caused by that most of them is written in Delphi, whereas we wrote it in C++, and it's really difference... I remark again - it only appears on VERY weak machines, ONLY on Win9x and ONLY on fast LANs( at least 100mbps).

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups