How to set up a Winsock UDP socket?

前端 未结 4 1532
花落未央
花落未央 2021-02-02 14:21

I want to create a Winsock UDP socket that only sends data to a client. I want the kernel to choose an available port for me. On the other hand, I want to indicate which local I

4条回答
  •  太阳男子
    2021-02-02 14:47

    When you say "I want to indicate which local IP to use, since I'm running a few nics", do you mean that you want to specify the ip address, or do you want to specify the nic and use the associated ip address?

    If you are trying to specify the nic, this question should be relevant.

提交回复
热议问题