tylertreat / comcast

Simulating shitty network connections so you can build better systems.
Apache License 2.0
10.31k stars 384 forks source link

Possible usage on Windows? #19

Open maxdow opened 9 years ago

maxdow commented 9 years ago

Have you tried to implement your code in a Windows environment? Is it possible?

tylertreat commented 9 years ago

Unfortunately I don't have access to a Windows machine to develop on. I'm sure it's possible to implement a backend for it, although I'm not familiar enough with Windows APIs to say how you would do it. I'd happily accept any PRs which add support for it.

ghost commented 9 years ago

There is a project for Windows (up to Windows 7 last I checked) called wipfw, which is somewhat of a port of ipfw to Windows. I left some commented stubs in to add support for it at a later date. I can also research into doing it with native windows networking stack.

ghost commented 9 years ago

Looks like I may have found a winner, though to be honest... given what I've seen so far, looks like it's better to just use their project than try to re-implement a wrapper in Comcast (though I'm sure it's entirely possible). Theirs even has a fancy GUI.

http://jagt.github.io/clumsy/

Their wrapping this library: https://reqrypt.org/windivert.html Since it's C, could potentially use it with Cgo if we really wanted to implement windows support.

maxdow commented 9 years ago

Clumsy looks nice. Thanks ;-) do you think about making a gui or your project is more a core?

omariom commented 9 years ago

+1

mardukbp commented 4 years ago

There is also win-shaper, which uses a driver written in C. I hope it does not require too much work to use it as the Windows backend for Comcast. It would be awesome to have a cross-platform tool for simulating network conditions!