douliudong8108 2017-11-07 11:40
浏览 618

如何在Golang中异步接收多播UDP数据包?

I am trying to create an application to receive multicast UDP packets. This application does not only listen for incoming packets but also does many other tasks as well. So, I wanted to keep receiving part async. I program in Golang.

Any help would be appreciated, happy coding..

  • 写回答

1条回答 默认 最新

  • doudeng2016 2017-11-07 12:02
    关注

    Well, I think you could put the listener into a for declaration and every time that you receive a package from the listener you could execute what do you want in a goroutine.

    an example can be here and look in the section SERVER IMPLEMENTATION

    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题