in reply to Send over/print to socket at a specific rate
There's no way to directly set the transmission speed of a socket connection. All you could do is to approximate the average speed by sending a 11025 x 16bits block once every second or similar (using a timer, and presuming the bandwidth of the connection is sufficient) — though I'm not really sure if this would help here...
I think you'll have to process the data on the receiving end instead (at 11025 x 16bits per second). The data on the socket will not come in faster than you're reading it.
What is the real problem you're trying to solve with your sending-at-a-specific-rate requirement?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Send over/print to socket at a specific rate
by Illuminatus (Curate) on May 05, 2011 at 17:56 UTC | |
by doherty (Novice) on May 05, 2011 at 18:10 UTC |