Huin and GitHub
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
Huin and GitHub
9b81a7424f
Update email address.
2017-08-03 10:08:12 +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
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
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
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
John Beisley
4191d8a850
Merge branch 'fjl-soap-quote'
2015-02-14 09:43:39 +00:00
Huin
2230083611
Merge pull request #3 from zeebo/patch-1
...
update internetgateway1 example to build on go1.4
2014-12-11 21:15:49 +00:00
John Beisley
ecfaac0e3a
Initial work on maintaining a registry of discovered devices.
2014-06-08 13:45:53 +01:00
John Beisley
9c7a5054da
Minor corrections to error handling logic in httpu.
2014-06-08 09:19:48 +01:00
John Beisley
5cd41e8371
Correct HTTPU serving to not require an interface for multicast.
2014-06-08 09:10:34 +01:00
John Beisley
dcc00c8629
Initial work for receiving HTTPU broadcasts.
2014-06-07 23:40:07 +01:00
John Beisley
ca8dc4faf5
Add additional header docs to generated DCP packages.
2014-06-07 21:24:11 +01:00
John Beisley
4370c89058
Factored dcpMetadataByDir out as a global.
2014-06-07 20:55:03 +01:00
John Beisley
eadcb12812
Rename DCPS->DCP (name had confused a plural 's' into the acronym).
2014-06-07 20:34:27 +01:00
John Beisley
24f693965e
Add warning not to edit generated files by hand.
2014-06-07 20:29:41 +01:00
John Beisley
cb64bf9e9e
Refactor to allow for per-DCPS metadata in code generator.
2014-06-07 20:29:11 +01:00
John Beisley
df61e019e6
Add goupnp installation instructions.
2014-06-07 20:08:50 +01:00
John Beisley
9ba1a7725b
Use gotasks for specification-generated source code.
2014-06-07 20:07:54 +01:00
John Beisley
65abff0690
Add example of using internetgateway1.
2014-06-06 22:19:17 +01:00
John Beisley
8e6bda33c3
Add SCPD.GetAction method.
2014-06-06 21:55:52 +01:00
John Beisley
788bb66b80
Correct the encoding of SOAP action arguments.
...
Also adds a test for this, and the decoding of the response arguments.
2014-06-06 21:21:13 +01:00
John Beisley
5c55e50548
Encode the SOAP action element.
...
It should always have included this. It probably never worked properly
before, except for servers that didn't require arguments or the action
element.
2014-06-05 22:38:04 +01:00
John Beisley
3a950ed088
Remove GofmtWriteCloser.
...
Now uses common github.com/huin/goutil/codegen version.
2014-01-12 01:10:05 +00:00
John Beisley
79a1c07c05
Add another GetExternalIPAddress example, using a common function.
2014-01-06 20:17:14 +00:00
John Beisley
90e83f960e
Update internetgateway[12] from new specgen.
2014-01-06 20:17:00 +00:00
John Beisley
251dddb253
Remove debug logging left in by mistake.
2014-01-06 20:15:29 +00:00
John Beisley
cef9a282c1
Don't discard all results if an unexpected reply comes back.
2014-01-06 20:14:53 +00:00
John Beisley
a8a8987980
Use nil interface{} instead of struct{} for empty requests/responses.
...
The XML encoder doesn't like receiving struct{}.
2014-01-06 19:47:57 +00:00
Huin
d8237236d8
Check for error when encoding the request action.
2014-01-05 22:41:51 +00:00
John Beisley
8a169ca3f7
Fix DiscoverDevices to work with absent root.URLBaseStr.
...
This is particularly important as URLBaseStr should never be present in
UPnP/1.1.
2014-01-05 19:39:24 +00:00
Huin
980f9c9dcc
Merge pull request #1 from huin/httpu_reduction
...
Reduce headers written by httpu, in case this confuses some devices.
2014-01-04 06:13:19 -08:00
John Beisley
b9f1a1f71a
Reduce headers written by httpu, in case this confuses some devices.
2014-01-02 22:13:21 +00:00
John Beisley
6856f9618d
Add example code, and improve the facing docs slightly.
2013-12-31 20:49:32 +00:00
John Beisley
1f02d6bce3
Add New*Clients functions to the generated code to simplify their use.
2013-12-31 20:01:17 +00:00
John Beisley
03572e5988
Small fixes and removals, update discoverigd.go.
2013-12-31 18:36:26 +00:00
John Beisley
587c68769d
Remove redundant information from action docs.
2013-12-31 18:06:34 +00:00
John Beisley
d4355376d7
More minor generated documentation improvements.
2013-12-31 18:04:59 +00:00
John Beisley
92b4aac9bb
Attempt to tidy generated documentation.
2013-12-31 17:52:43 +00:00
John Beisley
38405bcf8d
Include gofmt in the code generation process.
2013-12-31 17:16:47 +00:00
John Beisley
50cfea8d4f
Inline request/response structures.
2013-12-31 17:06:15 +00:00
John Beisley
d2cd2978d9
Use data type (un)marshal in generated DCP code.
2013-12-31 16:56:20 +00:00
John Beisley
9db0302a13
Add (untested) r4 and r8 type marshalling implementations.
2013-10-27 21:13:07 +00:00
John Beisley
f6c0a22a5f
Add many integer marshalled types.
2013-10-27 21:01:36 +00:00
John Beisley
e86d73d8f4
Implement SOAP bin.hex marshalling.
2013-10-27 20:21:44 +00:00
John Beisley
3c28ba0b35
Implement SOAP "bin.base64" marshalling.
2013-10-27 20:17:00 +00:00
John Beisley
aba95ad90c
Add marshalling for the "boolean" type.
2013-10-27 20:04:48 +00:00
John Beisley
ecf830777a
Add marshalling for dateTime.tz type.
2013-10-27 19:08:31 +00:00
John Beisley
de724897db
Make datetime tests more robust against DST/timezone changes.
2013-10-09 22:23:57 +01:00
John Beisley
60ec9a6095
Add datetime marhsalling support.
2013-10-09 22:19:01 +01:00
John Beisley
c9607c5123
Document the other implemented marshallers.
2013-10-09 21:39:55 +01:00
John Beisley
0db75c9211
Document/fix the "date" marshalling.
2013-10-09 21:38:41 +01:00
John Beisley
75576218a4
Correct TimeOfDay type, and add marshalling for time.tz.
2013-10-09 21:35:09 +01:00
John Beisley
7469efd5ff
Add TimeOfDay type.
2013-10-09 19:43:33 +01:00
John Beisley
17abe5294a
Initial work on marshalling/unmarshalling SOAP types.
...
So far added:
* fixed.14.4
* char
* date
2013-10-08 23:00:49 +01:00
John Beisley
ef1de8df74
Add internetgateway1 and internetgateway2 generated code.
2013-10-06 23:16:53 +01:00
John Beisley
ea06094dea
Attempt to add argument/return value documentation.
2013-10-06 23:16:25 +01:00
John Beisley
5ff1b1c840
Fix syntax error in generated code.
2013-10-06 22:45:11 +01:00
John Beisley
e48908bf4c
Fix types to generated code.
2013-10-06 22:39:16 +01:00
John Beisley
574930a66a
Add scpd module which was mistakenly not added previously.
2013-10-06 22:09:22 +01:00
John Beisley
df9c033d1a
Initial work on auto-generating SOAP clients for UPnP services.
2013-10-06 22:06:47 +01:00
John Beisley
6a9b6ed1a9
Documentation update.
2013-10-06 22:06:22 +01:00
John Beisley
7047429ef8
Fix bug in visiting services.
2013-10-06 16:53:53 +01:00
John Beisley
914072fdd8
Separate lower-level API into separate packages.
2013-10-06 13:23:11 +01:00
John Beisley
e8e520e578
Add documentation comments.
2013-10-06 13:14:31 +01:00
John Beisley
0b82043f96
Tidy up the SOAP components a bit.
2013-10-06 12:57:26 +01:00
John Beisley
80bd2aa934
Helper functions on devices, minor fixes.
2013-10-03 20:38:23 +01:00
John Beisley
61577bd15b
Seems that searching for a service also works.
2013-09-29 16:15:35 +01:00
John Beisley
33980ebacf
Fix bug introduced by removing pointer indirection.
2013-09-29 16:09:10 +01:00
John Beisley
c86636d636
Remove TODO dealt with in the last commit.
2013-09-29 16:03:27 +01:00
John Beisley
69d76cd5e4
Remove some pointer indirections in device.go.
2013-09-29 15:59:53 +01:00
John Beisley
a7fffcafdc
Remove debug code.
2013-09-29 11:27:00 +01:00
John Beisley
1b8d66b887
Add SOAP action support.
2013-09-29 11:23:10 +01:00
John Beisley
489c180de9
Add SCPD parsing.
2013-09-28 20:05:21 +01:00
John Beisley
58cc710720
SetURLBase on PresentationURL as well.
2013-09-28 18:59:03 +01:00
John Beisley
c7f69f6a43
Make URL field names consistent.
2013-09-28 18:54:48 +01:00
John Beisley
c2207fac12
Rename xml.go -> device.go.
2013-09-28 18:47:39 +01:00
John Beisley
29edeac666
Parse device URLs relative to URL base.
2013-09-28 18:47:08 +01:00
John Beisley
b36f8b301e
Correct service names, add standards reference.
2013-09-28 18:07:05 +01:00
John Beisley
fdb21f966f
Add example of using the library to discover an InternetGatewayDevice.
2013-09-28 17:58:28 +01:00
John Beisley
26ceb1478f
Keep things generic for the time being. Refactor for simplicity.
2013-09-28 17:57:51 +01:00
John Beisley
9bddaed1e9
Introduce minor delay between sends on HTTPU.
2013-09-28 11:26:18 +01:00