Sorry, I should have explained in greater detail. I'll simplify the project to just the networking aspect so it's easier to understand hopefully. So lets say there are 2 programs: a client and a server program. They are suppose to communicate. So the client sends data to the server program, and the server just reads it. They are connected on the local network. When a user starts the programs they need to specify a data rate that the two will communicate at. The network transmission data rate between the two programs needs to be as constant as possible to what the user indicated, which is also smaller than the network capabilities. I guess, another way of wording it is that basically I need to limit the network data rate the programs will transmit at to the constant data rate that the user specifies. If I just use the standard sockets API, AFAIK the data will be sent at variable speeds, and at whatever rate the network will allow based on network usage and other things. It can be assumed that the data to be sent is already in the memory, so it just needs to be sent. Like I am not reading anything from serial port or anything like that. This is just a requirement of the project, so I a have to try and implement it. Hopefully that makes more sense.

Latem