Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
idudpserver max length ?
#2
UDP is a datagram-based transport. There is a 1:1 relationship between the size of the data being sent and the size of the data being received. The default value of the TIdUDPServer.BufferSize property is 8192 bytes, so right there, that is not enough buffer space to receive 9000 characters. You need to increase the BufferSize.

The TIdUDPServer.OnUDPRead event is only fired for datagrams that are received in full, partial datagrams that get truncated due to lack of buffer space are ignored and discarded.

What is the actual encoding of the strings you are sending? Using a packet sniffer, like Wireshark, what is the actual byte size of the datagrams that are not being received correctly? UDP has a maximum payload size of 65507 bytes.

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: 2 Guest(s)