Is it possible to not set a DatagramPacket's buffersize? I want to use this DatagramPacket in the receive method of my DatagramSocket, but I don't know how large the buffersize should be as the data I receive is unknown.
If this is possible, please enlighten me. If not, could anybody show me a way to trim the buffer to size when it is filled up with 0's? (E.g. when I set the buffer size to 2048 & the packet I receive has a data size of 1800, the buffer will be filled with 0's till it is at 2048 length) So how could I achieve this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

