Hi, We have a voip application running on Win Mobile 6.0. We are sending
/receiving packets
of 160 bytes (20ms) . We have been having an issue with the receive data
when we are simultaneously
sending on the same socket. If we comment out the sendto() function the
receive data is ok otherwise
with the sendto() in we lose a few frames, this results in lost audio at the
earpiece. we have done a lot of tests
to prove the audio is fine. Simply commenting out sendto() cures the problem
so we are wondering
if sendto() can affect the receive data over a socket. We have set the
socket to be non blocking
but have noticed using QueryPerformanceCounter that sendto() is taking
5-10ms to complete.

Can sendto() block in certain conditions even on a nonblocking socket?

Re: Winsock Sendto() affecting receive data by Silver

Silver
Tue Mar 11 12:54:00 CDT 2008

It is likely that the thread is yielding somewhere during the sendto call,
then another thread executes before it gets back to the sendto.

Consider hooking up the kernel tracker to examine more closely what is
going on.

http://blogs.msdn.com/sloh/archive/2005/05/17/Introduction-to-Remote-Kernel-Tracker.aspx


Geoff
---


Re: Winsock Sendto() affecting receive data by Graeme

Graeme
Thu Mar 13 03:37:51 CDT 2008

I'd always suggest you have two threads, for send and for receive of data if
possible

--
--
GraemeW
Web - http://www.bytesnap.co.uk
Blog - http://ce4all.blogspot.com

"Silver" <moc.liamtoh@gnirrevliseht> wrote in message
news:e1K9nD6gIHA.4164@TK2MSFTNGP05.phx.gbl...
> It is likely that the thread is yielding somewhere during the sendto call,
> then another thread executes before it gets back to the sendto.
>
> Consider hooking up the kernel tracker to examine more closely what is
> going on.
>
> http://blogs.msdn.com/sloh/archive/2005/05/17/Introduction-to-Remote-Kernel-Tracker.aspx
>
>
> Geoff
> ---
>