463 Commits

Author SHA1 Message Date
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
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
4d83cc616a vendor things 2014-11-20 00:54:41 -08:00
Juan Batiz-Benet
1089720859 added utp listen/dial 2014-11-20 00:54:16 -08:00
Juan Batiz-Benet
0c0f1f3163 broken up net pkg 2014-11-19 13:55:52 -08:00
Juan Batiz-Benet
99cf3edc71 separated into subrepo 2014-11-19 13:53:08 -08:00
Juan Batiz-Benet
9c12017d40 multiaddr tool building 2014-11-19 13:51:41 -08:00
Juan Batiz-Benet
14bdd3270d Merge branch 'matool' of ../go-multiaddr 2014-11-19 13:50:13 -08:00
Juan Batiz-Benet
63387ddeb4 multiaddr link 2014-11-19 13:39:41 -08:00
Juan Batiz-Benet
1e1562564d added utp support to net/ 2014-11-19 13:24:03 -08:00
Juan Batiz-Benet
ae3b067850 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
107f2157f4 IP unspecified addrs 2014-11-05 02:06:28 -08:00
Juan Batiz-Benet
5b8fc748ca IP unspecified addrs 2014-11-05 02:06:28 -08:00
Juan Batiz-Benet
c1210ef56d hide-loopback in tool 2014-11-05 01:47:13 -08:00
Juan Batiz-Benet
f05346f34e hide-loopback in tool 2014-11-05 01:47:13 -08:00
Juan Batiz-Benet
2bea5f93a2 added ipv6 link-local loopback 2014-11-05 01:47:02 -08:00
Juan Batiz-Benet
20cc417a53 added ipv6 link-local loopback 2014-11-05 01:47:02 -08:00
Juan Batiz-Benet
29a9c6f145 net: added InterfaceMultiaddrs 2014-11-05 00:38:21 -08:00
Juan Batiz-Benet
fb33680d08 net: added InterfaceMultiaddrs 2014-11-05 00:38:21 -08:00
Juan Batiz-Benet
4489dfa8c5 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
bb34b84e84 Cast and Loopback 2014-11-05 00:04:30 -08:00
Juan Batiz-Benet
76ea093a04 multiaddr conversion tool 2014-11-04 23:51:11 -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
e94d248a76 tests: Dial + Listen 2014-10-11 02:28:34 -07:00
Juan Batiz-Benet
d169b2f21d 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
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
81b6210ce5 documentation 2014-10-11 01:23:37 -07:00
Juan Batiz-Benet
7d1a12d59b documentation 2014-10-11 01:23:37 -07:00
Juan Batiz-Benet
dc978d4bc3 moved net stuff into subpkg 2014-10-11 00:50:55 -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