Commit Graph

12 Commits

Author SHA1 Message Date
Andrew Dunham
00783e79ec httpu: add context.Context and related interface
This adds a new interface for httpu that supports a Context, and uses
that context to set a deadline/timeout and also cancel the request if
the context is canceled. Additionally, add a new method to the SSDP
package that takes a ClientInterfaceCtx.

Updates #55

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
2023-08-29 19:12:39 +01:00
Kz Ho
62bd5c75d8 Add sync.Pool to reuse packet conn buf object 2023-01-18 08:53:09 +00:00
mhhcbon
e739c716b4 #48: Add local address information 2022-03-22 09:50:46 +00:00
John Beisley
36abb0b21b Discover devices on all the host's capable network interfaces. 2020-05-16 11:59:03 +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
Aman Gupta
9970de6104 Fix error logging 2017-08-02 21:13:32 +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
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
b9f1a1f71a Reduce headers written by httpu, in case this confuses some devices. 2014-01-02 22:13:21 +00:00
John Beisley
914072fdd8 Separate lower-level API into separate packages. 2013-10-06 13:23:11 +01:00