none
Not able to receive broadcast message after some time RRS feed

  • Question

  • I am trying to create a UDP socket capable of receiving broadcast message as well as unicast message as follows. The OS I am using is Windows10.

    this.datagramSocket = new UdpClient(ipEndPointToBind)
    {
    Client =
      {
        ReceiveBufferSize = CommonResources.MaxSocketRecvBufferSizeI, SendBufferSize =             CommonResources.MaxSocketSendBufferSizeI
        },
        EnableBroadcast = true
     };

    After some time, the application is not able to receive broadcast messages. I am able to see the messages on Wireshark. Moreover if I am sending an unicast message to the above created socket, the socket is successfully receiving it and all the broadcast messages are getting received after that again. Could anybody explain me what is the mistry ??


    Wednesday, February 6, 2019 9:03 AM

Answers