Commit Graph

139 Commits

Author SHA1 Message Date
Dmitry Novotochinov 458dd4ad22
update android compileSdkVersion and buildToolsVersion to 26 2018-08-30 21:03:32 +03:00
Mark Vayngrib 8ade57de01 2.3.1 2017-12-08 10:24:57 -05:00
Mark Vayngrib c48e42d449 fix: WifiManagerLeak 2017-12-08 10:24:17 -05:00
Mark Vayngrib 4a3d903cc0 2.3.0 2017-11-02 11:52:35 -04:00
Ranjan Shrestha 8c8ac4be51 Don't include examples in the npm package (#60)
Do not include the examples while creating npm package
* Include .gitignore content in .npmignore
2017-11-02 11:51:28 -04:00
Mark Vayngrib cbc2afeac4 2.2.1 2017-10-25 08:42:50 -04:00
Mark Vayngrib dfa85e9475 fix bindArgs on android (broken by 2.2.0) 2017-10-25 08:42:03 -04:00
Mark Vayngrib 6049a3838b 2.2.0 2017-10-24 23:32:00 -04:00
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
Mark Vayngrib cfcb081d61 2.1.0 2017-08-09 08:53:43 -04:00
Mark Vayngrib 4ef1603104 delete duplicate noop declaration 2017-08-09 08:52:24 -04:00
Gavin Conway 00f1224167 Changed process.nextTick to setImmediate when socket already closed 2017-08-09 14:51:06 +02: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
Mark Vayngrib dc04cd35df support callback in close() 2017-02-19 21:04:46 -05:00
Mark Vayngrib 05ca61e662 2.0.0 2017-02-15 09:32:30 -05:00
Mark Vayngrib 5119ee2e70 Merge pull request #36 from tohjg/master
Support React Native 0.40.x header imports
2017-02-15 09:31:51 -05: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
Andy Prock 3715d8a4e6 1.2.9 2016-12-14 14:27:18 -08:00
Andy Prock 19699c1fa2 Merge pull request #30 from jmc420/master
add multicast
2016-12-14 14:26:08 -08:00
James Cowan 044ab6e57a add multicast 2016-11-10 17:49:33 +00:00
Andy Prock de6296de31 1.2.8 2016-11-07 14:58:44 -08:00
Andy Prock 0825e2b1d4 Merge pull request #28 from tradle/createSocket
allow options to be passed into createSocket
2016-11-07 14:56:50 -08:00
Andy Prock 7423850bf6 allow options to be passed into createSocket 2016-11-07 14:53:58 -08:00
Andy Prock 298101c5df 1.2.7 2016-11-03 09:29:52 -07:00
Andy Prock 2f43357118 Merge pull request #27 from aprock/master
android switch to MulticastSocket for sockets
2016-09-30 09:45:10 -07:00
Andy Prock 6c9c242ade android switch to MulticastSocket for sockets 2016-09-19 16:33:28 -07:00
Mark Vayngrib e77d9f6a9f 1.2.6 2016-09-18 12:46:43 -04:00
Mark Vayngrib 54443ab220 Merge pull request #25 from the-ress/the-ress-patch-2
Fix for iOS 10
2016-09-18 12:46:26 -04:00
Tereza Tomcova 0e10791b82 Fix for iOS 10 2016-09-15 16:54:46 +02:00
Mark Vayngrib a153fb5cc3 Merge pull request #24 from the-ress/patch-1
update linking instructions
2016-09-14 17:23:26 -04:00
Tereza Tomcova e0c59ad8b6 Update README.md 2016-09-14 23:03:34 +02:00
Tereza Tomcova 39dba9fc3e Changed rnpm command to react-native 2016-09-14 20:31:56 +02:00
Andy Prock b4ae666ff1 1.2.5 2016-07-20 15:59:52 -07:00
Andy Prock 324f840c45 Merge pull request #20 from tradle/rn29
update example and documentation for rn 0.29.2
2016-07-20 15:59:38 -07: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 fbc123849f 1.2.4 2016-01-15 15:52:13 -08:00
Mark Vayngrib cc35c46faf Merge pull request #18 from tradle/quieter
remove noisy message received log
2016-01-13 20:23:09 -05:00
Andy Prock acb9dbcbd6 remove received noisy message received log 2016-01-13 14:43:56 -08:00
Andy Prock 8aae2a1e2c 1.2.3 2015-12-31 08:39:43 -08: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 05b206deca 1.2.2 2015-12-22 10:12:24 -08:00
Andy Prock 1190187964 Merge pull request #16 from tradle/ios-clients
Fixes #15
2015-12-22 09:46:44 -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 641b9d770e Fixes #14
Now forcing the host resolution to happen, which will make the UnknownHostException fire if there are problems.
2015-12-21 17:19:59 -08:00
Mark Vayngrib bf668cd322 1.2.1 2015-12-21 17:58:58 -05:00
Mark Vayngrib 5b6972ca10 Merge pull request #13 from ajwhite/allow-hostnames
Allow hostnames in addition to IP addresses
2015-12-21 17:56:32 -05:00
Atticus White 97e9d137b5 validate hostname in addition to ip address 2015-12-21 16:03:59 -05:00