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.
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 you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
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
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Seriously? Do you know how old this is? Why not something from this century? It's only marginally better than using Turbo C/C++.VC6
Code://try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}