UDP multicast group on Windows Phone 8

前端 未结 3 509
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 10:54

OK this is one I\'ve been trying to figure out for a few days now. We have an application on Windows Phone 7 where phones join a multicast group and then send and receive me

3条回答
  •  别那么骄傲
    2020-12-24 11:04

    I notice you use the loopback. I think it means that when you send a message from your client you will receive the message you sent also. This means your receive handler will fire. It has the effect of clearing the receive buffer in a seemingly unthreadsafe fashion. Try putting some try catch in your receive method and see if anything untoward is happening but you might instead just not use the shared receive buffer in any case.

提交回复
热议问题