Marcus Stenbeck 69a8e844e3 Set max buffer size to maximum allowed (#44)
* Set max buffer size to maximum allowed

I'm evaluating this library for an application that sends ~60kb size UDP messages. Without this setting the messages are cut off at the default message size.

This is probably something you'd want to set with `const socket = dgram.createSocket('udp4', { maxBufferSize: 'UINT16_MAX' })`. I've modified the library to automatically choose the largest allowed size `GCDAsyncUdpSocket` allows (which is 64kb).

* Set max ipv6 buffer size to uint16 maximum
2017-03-24 11:54:12 -04:00
..
2015-09-25 14:58:32 -07:00
2017-02-15 12:56:23 +08:00