I wrote two programs:Server and Client,
they communicate by audio through TCP protocol,
but I find they couldn't communicate in real time,
How to transfer audio data in real time?
Could you support me some documents.Thanks.
Printable View
I wrote two programs:Server and Client,
they communicate by audio through TCP protocol,
but I find they couldn't communicate in real time,
How to transfer audio data in real time?
Could you support me some documents.Thanks.
> they couldn't communicate in real time
What? Apart from internet latency, the communication is virtually instantaneous.
It sounds like you just want to make a sound-file transfer program, in which case, it would be as easy as anything else: read it into a buffer, send it through, let TCP fragment up your data, let the other computer receive it, assemble it, and then save it as a sound file again.
Perhaps read this -> Real-time Transport Protocol - Wikipedia, the free encyclopedia
And understand why TCP isn't perhaps the best thing to use (hence the invention of RTP).
If I want to write codes with RTP,
what files do I need?
I write codes using VC6
> If I want to write codes with RTP, what files do I need?
Just a standard socket library, and lots of reading of RFC 3550 - RTP: A Transport Protocol for Real-Time Applications
Seriously? Do you know how old this is? Why not something from this century? It's only marginally better than using Turbo C/C++.Quote:
VC6