Jeromy
b185168cd2
modularize multiaddr protocols
2016-01-17 01:28:18 -08:00
Juan Benet
dd8f16c47c
Merge pull request #13 from david415/support-tor-onion
...
Add Tor .onion address support and unit test cases
2015-09-25 20:09:07 -04:00
David Stainton
24ecf94c70
Add more multiaddr tests for onions
2015-09-26 01:40:26 +02:00
David Stainton
3bc1e2e8c3
Onions are 80 bits
2015-09-26 01:36:31 +02:00
David Stainton
fca4278010
Ensure port is above minimum port number for onions
2015-09-26 01:35:58 +02:00
David Stainton
d30c844a21
Merge branch 'support-tor-onion' of github.com:david415/go-multiaddr into support-tor-onion
...
Conflicts:
codec.go
multiaddr_test.go
2015-08-31 03:24:03 +02:00
David Stainton
0e7ae0d2ee
Renamed tor to onion and added embedded port field
2015-08-31 03:19:47 +02:00
Leif Ryge
75a10eef9b
more strict validation of .onion addresses
2015-08-29 20:22:48 +00:00
David Stainton
ed310561bd
Add Tor .onion address support and unit test cases
2015-08-29 19:48:07 +02:00
Juan Batiz-Benet
c13f11bbfe
varint-prefixed mvariable sized addrs
2015-01-20 14:16:49 -08:00
Juan Batiz-Benet
94d7488d07
-1.2
2015-01-20 12:19:57 -08:00
Juan Batiz-Benet
03f8fd4a9e
race tests
2015-01-20 11:57:14 -08:00
Juan Batiz-Benet
f529ec7884
added http, https, and ipfs protocols
2015-01-17 21:12:54 -08:00
Juan Batiz-Benet
0d7b54ba43
err correction
2015-01-09 05:57:03 -08:00
Juan Batiz-Benet
32d9d68b64
ProtocolsWithString
2015-01-09 05:51:16 -08:00
Juan Batiz-Benet
17f4666d01
Protocols now value
2015-01-09 05:37:39 -08:00
Juan Batiz-Benet
ed277d56f8
better errs, and test parsing
2015-01-09 05:30:33 -08:00
Juan Batiz-Benet
99cf3edc71
separated into subrepo
2014-11-19 13:53:08 -08:00
Juan Batiz-Benet
1e1562564d
added utp support to net/
2014-11-19 13:24:03 -08:00
Juan Batiz-Benet
59f6cfc921
implement varints + add utp, udt
2014-11-19 13:02:06 -08:00
Juan Batiz-Benet
62a88e015e
faster encapsulation + join
2014-11-05 02:30:53 -08:00
Juan Batiz-Benet
9d04132166
Split + Join
2014-11-05 02:20:27 -08:00
Juan Batiz-Benet
5b8fc748ca
IP unspecified addrs
2014-11-05 02:06:28 -08:00
Juan Batiz-Benet
f05346f34e
hide-loopback in tool
2014-11-05 01:47:13 -08:00
Juan Batiz-Benet
20cc417a53
added ipv6 link-local loopback
2014-11-05 01:47:02 -08:00
Juan Batiz-Benet
4489dfa8c5
net: added InterfaceMultiaddrs
2014-11-05 00:38:21 -08:00
Juan Batiz-Benet
bb34b84e84
Cast and Loopback
2014-11-05 00:04:30 -08:00
Juan Batiz-Benet
5f35e6d949
multiaddr conversion tool
2014-11-04 23:51:11 -08:00
Juan Batiz-Benet
4a5dcd3a4d
Split: added split method
2014-11-04 23:20:17 -08:00
Juan Batiz-Benet
d43f6afdd9
removed url from readme
2014-10-11 03:30:15 -07:00
Juan Batiz-Benet
68a20675cb
Merge pull request #10 from jbenet/net
...
net subpackage
2014-10-11 03:01:36 -07:00
Juan Batiz-Benet
a104069971
added travis.yml
2014-10-11 02:30:03 -07:00
Juan Batiz-Benet
d169b2f21d
tests: Dial + Listen
2014-10-11 02:28:34 -07:00
Juan Batiz-Benet
83543fff5d
basic net package (no tests yet)
...
Implements:
- Conn
- Dial, Dialer
- Listen, Listener
2014-10-11 01:23:55 -07:00
Juan Batiz-Benet
7d1a12d59b
documentation
2014-10-11 01:23:37 -07:00
Juan Batiz-Benet
01c7b7934d
moved net stuff into subpkg
2014-10-11 00:50:55 -07:00
Juan Batiz-Benet
2a572df05c
ignore trailing slashes
2014-10-10 20:40:51 -07:00
Juan Batiz-Benet
351b5d0f14
ToNetAddr + tests.
2014-10-10 20:31:19 -07:00
Juan Batiz-Benet
1ec9436b1d
docs
2014-10-06 04:05:20 -07:00
Juan Batiz-Benet
c90ef4472f
New Multiaddr interface
...
This commit changes the struct to a new Multiaddr interface:
```Go
type Multiaddr interface {
Equal(Multiaddr) bool
Bytes() []byte
String() string
Protocols() []*Protocol
Encapsulate(Multiaddr) Multiaddr
Decapsulate(Multiaddr) Multiaddr
}
```
This means a few things have changed:
- use Multiaddr interface, struct not exported
- Bytes returns a copy of the internal bytes
- Some methods no longer return errors (catch errors in NewMultiaddr)
- String (panics if malformed)
- Protocols (panics if malformed)
- Decapsulate (no-op if not prefix)
- Moved net-specific functions to package
- Multiaddr.DialArgs() -> DialArgs(Multiaddr)
- Multiaddr.IsThinWaist() -> IsThinWaist(Multiaddr)
cc @whyrusleeping @perfmode
2014-10-06 03:27:29 -07:00
Juan Batiz-Benet
bd30912d08
Multiaddr.String no error
...
The error in String should not actually ocurr, as the multiaddr
should have been valid to be constructed successfully, and thus
should be encoded back to its string rep correctly.
This will be bolstered by creating an interface (to prevent messing
with the internal bytes)
2014-10-06 02:39:00 -07:00
Juan Batiz-Benet
cca60aba88
Merge pull request #9 from ehmry/master
...
ipv6 support for DialArgs
2014-09-28 16:48:54 -07:00
Emery Hemingway
81e75c7145
ipv6 support for DialArgs
2014-09-28 19:23:34 -04:00
Juan Batiz-Benet
baeeb60a74
MIT license
2014-09-28 15:21:18 -07:00
Juan Batiz-Benet
74443fca31
Added Equal func
2014-09-16 06:08:48 -07:00
Juan Batiz-Benet
0624ab3bf7
net.Addr -> Multiaddr
2014-09-13 04:51:39 -07:00
Juan Batiz-Benet
a4b7753f74
use constants, fix ipv6 bug
2014-09-13 04:47:37 -07:00
Juan Batiz-Benet
b90678896b
go lint + unexporting some funcs
2014-09-11 10:47:56 -07:00
Juan Batiz-Benet
6ee313e6db
do not accept invalid-start multiaddrs
2014-09-11 10:45:20 -07:00
Juan Batiz-Benet
99196c0d23
dialing + consts
2014-07-07 01:25:20 -07:00