Commit Graph

130 Commits

Author SHA1 Message Date
John Beisley
36abb0b21b Discover devices on all the host's capable network interfaces. 2020-05-16 11:59:03 +01:00
John Beisley
0c863b7f0d Add a command to display all SSDP discoveries on local network. 2020-05-16 11:58:37 +01:00
John Beisley
271feae8ac Fix minor bug in how errors are displayed in codegen. 2020-05-10 09:48:28 +01:00
John Beisley
3a3eb33b84 Bump go.mod to 1.14. 2020-05-10 09:48:02 +01:00
John Beisley
656e61dfad Switch to generate code with go generate. 2018-10-13 15:04:17 +01:00
John Beisley
8bf4a8083e Add Go module files. 2018-10-13 13:40:44 +01:00
John Beisley
c178604dd5 Add Sublime Text project file. 2018-10-13 13:37:27 +01:00
Huin
1395d14473
Clarify code in HTTPUClient.Do.
The previous code was misleading by returning the `err` variable rather than an explicit `nil`. This code path was actually the success path. Functionally it was correct as that specific scoping of `err` could only be `nil` if that line of code was reached.
2018-04-15 22:51:57 +01:00
John Beisley
167b9766e5 Allow SSDP search results from inexact searches.
Fixes #24.
2018-03-15 19:13:24 +00:00
John Beisley
e25a5cc217 Fix formatting of an error message. 2018-03-04 21:56:41 +00:00
John Beisley
71cfb6bbcb Add correct spelling for RequestSCPD, mentioned in issue #23. 2018-03-04 21:55:55 +00:00
games647
dceda08e70 Use totalBytesHack for intergateway2 too 2017-11-09 16:41:07 -05:00
John Beisley
991e174e2e Add workaround for SOAP server XML decoding limitations. 2017-11-07 18:19:10 -05:00
John Beisley
29fc54a4c0 Remove spurious spaces from between req/resp struct members in generated code. 2017-11-05 13:50:25 +00:00
John Beisley
8087be8632 Use better way to remove trailing whitespace between lines. 2017-11-05 13:46:14 +00:00
John Beisley
efdc90f04d Emphasize generated nature of code more. 2017-11-05 13:40:23 +00:00
games647
b3887248e5 Fix uint out of value parsing for > 4 GiB traffic usage 2017-10-04 08:55:00 +01:00
Edward Betts
5b7801abd8 correct spelling mistake 2017-09-01 16:30:48 +01:00
Huin
9b81a7424f Update email address. 2017-08-03 10:08:12 +01:00
Aman Gupta
9970de6104 Fix error logging 2017-08-02 21:13:32 +01:00
Aman Gupta
73053506a9 Disable verbose logging of unexpected ssdp responses (#15)
* Disable verbose logging of unexpected ssdp responses

* Update ssdp.go
2017-05-11 19:19:13 +01:00
John Beisley
679507af18 Merge branch 'master' of github.com:huin/goupnp 2016-12-24 10:41:01 +00:00
John Beisley
6a64d9add7 Reformat part of README to improve GoDoc links. 2016-12-24 10:40:35 +00:00
Julien LEICHER
949b8a7753 Fix for max-age (#13)
* Fix for max-age with space

* Changed ? to * for multiple spaces
2016-10-31 18:15:47 +00:00
inhies
97f671ee5e Defer closing of xml file 2016-10-25 17:50:33 +01:00
traetox
d7ddae7b46 httpu client bind to specific address function (#11)
added additional function to allow for specifying which IP the PacketConn should listen on and broadcast on
2016-09-22 21:02:28 +01:00
John Beisley
46bde78b11 Add another example showing getting byte transfer counts on igd2. 2015-12-09 21:46:17 +00:00
John Beisley
1307dca7cf Add another example showing getting byte transfer counts on igd1. 2015-12-09 21:42:36 +00:00
Huin
90f71cb5dd Add more links to documentation section.
These links lay out the structure of the library, and more clearly indicate the typical entry point for users of the library.
2015-07-31 08:02:47 +01:00
John Beisley
074be02a65 Make the SSDP registry minimally useful. 2015-06-07 12:28:34 +01:00
John Beisley
99da32467b Cut down on useless argument/return docs. 2015-06-07 10:42:22 +01:00
John Beisley
4eb9134d2b Add minimal test for SOAP "uri" type. 2015-06-07 09:42:08 +01:00
John Beisley
790e151b1e Hack back in a URN missing from the internetgateway2 spec. 2015-06-07 09:27:13 +01:00
John Beisley
3232a79f99 Update generated code for internetgateway2 - updated spec. 2015-06-07 09:04:24 +01:00
John Beisley
6cbb8011f8 Update specgen to download DCP XML specs and process them individually. 2015-06-07 09:02:49 +01:00
John Beisley
4d40860a5b Merge branch 'tv42-av1' 2015-06-07 07:15:59 +01:00
Tommi Virtanen
77b86c3723 Generate dcps for AV1 audio/video devices
Tested against Sonos PLAY:5.

Added URI type to the SOAP library.

The latest upnpresources.zip does not contain older versions of the
specifications, so to be able to generate the bindings I had to create
a fake one:

    wget http://upnp.org/specs/av/UPnP-av-TestFiles-20070927.zip
    install -d 'standardizeddcps/MediaServer_1 and MediaRenderer_1'
    mv UPnP-av-TestFiles-20070927.zip 'standardizeddcps/MediaServer_1 and MediaRenderer_1/'
    zip -r fake.zip 'standardizeddcps/MediaServer_1 and MediaRenderer_1'
    gotask specgen -s fake.zip -o ../dcps
2015-06-06 16:54:08 -07:00
John Beisley
7f2f552f9b Add godoc link to README.md. 2015-06-06 12:29:56 +01:00
John Beisley
d55e4460fa Fix last commit to README.md. 2015-06-06 12:11:57 +01:00
John Beisley
abd5012d9d Add notes about supporting additional dcps. 2015-06-06 12:01:54 +01:00
John Beisley
fb03be1c78 Add support for discovery-free client creation in dcps packages. 2015-06-06 11:53:50 +01:00
John Beisley
c4f4be704b Add non-discovery ServiceClient constructor functions. 2015-06-06 11:35:31 +01:00
John Beisley
9f336b0025 Minor comment fix that could mislead. 2015-06-06 11:04:25 +01:00
John Beisley
9e7590f139 Fixes #9 - reacquire previously discovered device by URL.
Some more changes will be required for this to be supported by the dcps
packages.
2015-06-06 11:01:33 +01:00
Huin
5cff77a69f Merge pull request #8 from SavantSystems/master
Shorter timeout on requestXML
2015-06-02 17:05:54 +01:00
davelar
2adae303ef Merge pull request #1 from SavantSystems/feature/shorterTimeout
Changes the requestXml method to not use the default 30 second get ti…
2015-06-02 11:56:33 -04:00
Duarte Avelar
7c18e85798 Changes the requestXml method to not use the default 30 second get timeout, uses 3 seconds instead. 2015-06-02 11:20:27 -04:00
Huin
c57ae84388 Fix CharsetReader creation.
Fixes #7
2015-04-06 14:16:50 +01:00
John Beisley
2ed6e64917 Merge branch 'thinxer-master' 2015-03-07 08:50:21 +00:00
Jianfei Wang
4566387de9 support xml encoding other than utf-8 2015-03-07 14:57:28 +08:00