Commit Graph

19 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
tohjg b1550b34e4 removed shell script
shell script caused react dependencies file not found
2017-02-15 12:56:23 +08: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
Tereza Tomcova 0e10791b82 Fix for iOS 10 2016-09-15 16:54:46 +02:00
Andy Prock 2756af6c76 update example and documentation for rn 0.29.2
Introduced rnpm the new "standard" for linking to native modules
Removed the CocoaPod podspec
Updated the sample project to use react-native 0.29.2
Sample now shows the socket information on the main page
2016-07-20 15:56:54 -07: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
Andy Prock 398935bb67 implement addMembership/dropMembership for android
this enables support for protocols such as ssdp, which require multicasting
bump to version 1.1.1
2015-11-18 15:14:45 -08:00
Mark Vayngrib a1b07b4999 detect rctreloadnotification, cleanup sockets before exiting 2015-10-12 17:29:39 +01: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 b43eaa5fbe remove userdata 2015-10-01 17:16:35 -07:00
Andy Prock 919257b94a fixup header search paths for the xcode project 2015-10-01 17:12:31 -07: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