12 Commits

Author SHA1 Message Date
Gavin Conway
822b1e0933 Bubbled up reusePort to the API as an option on createSocket 2017-10-24 23:31:16 -04:00
Gavin Conway
6f62be0d6e Updated CocoaAsyncSocket. Added SO_REUSEPORT 2017-10-24 23:31:16 -04:00
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
darientoh
368c936b67 fixed rn 0.40 ios header duplication 2017-02-10 12:23:08 +08:00
James Cowan
044ab6e57a add multicast 2016-11-10 17:49:33 +00:00
Andy Prock
9664cdf276 fix typo in error message 2015-12-31 08:39:33 -08:00
Andy Prock
41fc91c5cc Fixes #17
It was crashing when trying to build a callback argument NSArray with a nil object. NSError's are not guaranteed to have a NSLocalizedFailureReason, so this case should be handled.
2015-12-30 22:51:26 -08:00
Andy Prock
e8050d3fe8 Fixes #15
Refactor the UdpSockets module _clients array to be a member variable.
Make the UdpSocketClient's delegate a weak reference.
remove reload notificaiton, and rely on dealloc to close all open sockets.
2015-12-21 19:45:38 -08:00
Andy Prock
96728a771d make UdpSocketClient pendingSends access thread safe 2015-12-17 09:16:18 -08:00
Andy Prock
defd529dc2 ios start using lightweight generics 2015-12-16 11:47:43 -08:00
Mark Vayngrib
f33fde4c06 send strings instead of NSError over bridge, RCTBridge chokes sometimes on NSJSONSerialization of errors 2015-10-12 09:55:20 +01:00
Andy Prock
3ce4b63536 initial android support
moved ios specific code into a subfolder
created an android folder
updated the Install instructions on the readme
bumped the version to 0.2.0
2015-09-25 14:58:32 -07:00