Python Forum

Full Version: very fast UDP relaying
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have an application idea which involve a process receiving UDP datagrams, examining header data, deciding where they need to go, and sending them there. it will also be collecting statistics that will influence that decision process. it needs to be as fast as needed to pass the traffic level of 2 or more times broadband speed. i'm tempted to implement this in C. but i would prefer to do this in Python, if it can do the job. to give it the best speed, i intend to avoid any network library, at least for the first try. i am looking for best Python code examples that receive and send UDP after setting up sockets. i'm wanting to look at a possible variety of code examples to see potential good tricks for this. examples that call library functions or methods are worthless to me for this project.