32 Commits

Author SHA1 Message Date
Steven Allen
694239868b
Merge pull request #36 from multiformats/feat/udp
Make PacketConn more idiomatic and direct
2019-08-09 17:18:50 -07:00
Cole Brown
f03b69ca9b Add support for unix sockets 2018-11-30 19:40:21 -05:00
Steven Allen
a7b912ae71 make the Is* commands only check if addrs start with
It turns out we *were* relying on this. Furthermore, this is generally more
useful (especially given ip6zones).
2018-10-24 09:09:25 -07:00
mwnx
a1defdc5aa Fully implement ip6zone support
- Add `FromIPAndZone` function (complementing the `FromIP` function).
- Handle zones when parsing `net.Addr`s.
- In `DialArgs`, return an error if an `ip6zone` is prefixed to an `ip4`
  or to another `ip6zone`.

Note: I was not able to add a listen test (in TestListenAddrs) for
`/zone/.../ip6/...` since there is no link-local address which is
guaranteed to exist on all systems.
2018-10-21 14:46:38 +02:00
Steven Allen
03e871bdbe fix loopback/link-local checks
1. Ensure we check the entire addr, not just a prefix.
2. Make the LinkLocal test skip zones.
3. Consider link-local multicast to be link-local.
4. Defer to *go* to determine if something is, in fact, a loopback/link-local address.
2018-10-17 22:01:57 +01:00
Steven Allen
3895ff188b gx: update go-multiaddr 2018-10-17 22:01:47 +01:00
Steven Allen
f3041fd8a9 fix loopback addresses
* fe80::1 is not a loopback address
* ::ffff:127.* probably is (IPv4-mapped IPv6)
2018-09-30 16:33:41 -07:00
Steven Allen
a109f8da85 expose methods from underlying connection types
This sucks but I can't think of a better way to do this. We really do want to
expose these features and doing so through type assertions is very go-like.
2018-06-21 14:20:01 -07:00
Steven Allen
fad8780c0c add test for netlistener wrapper/unwrapper 2018-03-08 13:36:43 -08:00
Steven Allen
d1762038d1 improve test cases for IsIPLoopback 2018-03-08 12:57:53 -08:00
Lars Gierth
9feee519c3 Make PacketConn more idiomatic and direct 2018-03-03 21:19:40 -05:00
Tom Swindell
49f84c7c45 Added UDP datagram packet connection support.
Signed-off-by: Tom Swindell <t.swindell@rubyx.co.uk>
2017-08-13 04:50:23 +02:00
Jeromy
6c6b26b274 fix go vet issue 2017-03-23 18:45:49 -07:00
jbenet
4cc9fd0c58 go-multiaddr is now at multiformats org 2016-09-19 10:30:07 +08:00
Jeromy
ff394cdaae extract out yamux code in favor of modularity 2016-06-10 15:33:31 -07:00
Jeromy
d4cfd691db add ip+net back in 2016-05-16 14:40:20 -07:00
Jeromy
4d7e08bab8 move deps from godep to gx 2016-04-26 17:11:49 -07:00
Jeromy
cacd78eadc add utp to multiaddr-net 2015-10-03 16:40:21 -07:00
Juan Batiz-Benet
df2b415f3d tests for net conversions
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-06-19 00:11:37 -07:00
Juan Batiz-Benet
04044c2289 AddrMatch 2015-01-12 18:45:34 -08:00
Juan Batiz-Benet
97da87cf8f test ip6 conversion 2015-01-12 18:26:34 -08:00
Juan Batiz-Benet
8359bd0b54 fixed consts + test 2015-01-12 11:33:06 -08:00
Juan Batiz-Benet
2b8f35303d disable utp for now (broken) 2015-01-09 06:09:38 -08:00
Juan Batiz-Benet
b6265d8119 bugfix: Listen always return err. test it 2014-11-20 05:09:46 -08:00
Juan Batiz-Benet
625fac6e50 update imports to point to vendored repos 2014-11-20 00:55:05 -08:00
Juan Batiz-Benet
1089720859 added utp listen/dial 2014-11-20 00:54:16 -08:00
Juan Batiz-Benet
107f2157f4 IP unspecified addrs 2014-11-05 02:06:28 -08:00
Juan Batiz-Benet
2bea5f93a2 added ipv6 link-local loopback 2014-11-05 01:47:02 -08:00
Juan Batiz-Benet
fb33680d08 net: added InterfaceMultiaddrs 2014-11-05 00:38:21 -08:00
Juan Batiz-Benet
5d64ba1250 Cast and Loopback 2014-11-05 00:04:30 -08:00
Juan Batiz-Benet
e94d248a76 tests: Dial + Listen 2014-10-11 02:28:34 -07:00
Juan Batiz-Benet
a991297e5e basic net package (no tests yet)
Implements:
- Conn
- Dial, Dialer
- Listen, Listener
2014-10-11 01:23:55 -07:00