Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
idudpserver max length ?
#4
You are not sending 9000 string characters as-is, you are encoding them as UTF-8, which expands the byte size if there are non-ASCII characters present, and then you are encoding that with base64 (why?), which expands the byte size by 3/2 times. So, a 9000 character string would be AT LEAST 13500 bytes and AT MOST 54000 bytes, depending on what the characters actually are and how UTF-8 encodes them.

Those sizes are larger than the default BufferSize of 8192 bytes, which is why you are not seeing that datagram arrive in the OnUDPRead event.

You need to set the BufferSize to a value that can accommodate the largest message that will ever be received. I would suggest setting it to 64K (65536), then you don't have to ever worry about any datagrams being dropped for being too large, as UDP cannot physically hold that many bytes in a single datagram.

Reply


Messages In This Thread
idudpserver max length ? - by Madammar - 04-20-2018, 01:15 AM
RE: idudpserver max length ? - by rlebeau - 04-20-2018, 02:03 AM
RE: idudpserver max length ? - by Madammar - 04-20-2018, 11:54 AM
RE: idudpserver max length ? - by rlebeau - 04-20-2018, 05:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)