aman_bajra
2008-07-09 09:40:05 UTC
I have a voip program in which one VI acts as server and other acts as client. Server is listening at two port. At one port , it sends audio data to client and in another port it receives data then plays it. I am using TCP. My question is, is there any difference or time delay when in TCP , a listener writes data insteand of receiving. Does it cause any delay. I have included two sets of files
Set 1 - A_speaker and A_microphone
Set 2 - B_speaker and B_microphone
In Set 1 listener (server) receives data (sound data from TCP read ) and in Set 2 listener sends data (it acumulates wave data from microphone and then sends to TCP write). I could feel some delay in second case which is not good for a VOIP type program.
Is it that in TCP, listener recieves data faster than sending ?
audio and microphone.zip:
http://forums.ni.com/attachments/ni/170/338985/1/audio and microphone.zip
Set 1 - A_speaker and A_microphone
Set 2 - B_speaker and B_microphone
In Set 1 listener (server) receives data (sound data from TCP read ) and in Set 2 listener sends data (it acumulates wave data from microphone and then sends to TCP write). I could feel some delay in second case which is not good for a VOIP type program.
Is it that in TCP, listener recieves data faster than sending ?
audio and microphone.zip:
http://forums.ni.com/attachments/ni/170/338985/1/audio and microphone.zip