kubo/net/mock
Juan Batiz-Benet f354fa849e mocknet: FullMesh connects to self too.
@maybebtc thoughts on this? dialing self should be
**possible**, so we should in general test that we do
consider that case, but not sure if this is good to expose
to clients. thoughts?

Btw, on why dialing self should be possible, we may create
little protocols which we may have a node connect to self,
say across its interfaces to test connectivity, etc...
think of it like:

> server localhost:1234 &
> curl localhost:1234
2014-12-17 23:25:40 -08:00
..
interface.go mocknet: printing internal mocknet state 2014-12-17 23:25:40 -08:00
mock_conn.go mv net/mock2 -> net/mock 2014-12-17 23:25:40 -08:00
mock_link.go mocknet: bugfix on opening conns + printer 2014-12-17 23:25:40 -08:00
mock_net.go mocknet: printing internal mocknet state 2014-12-17 23:25:40 -08:00
mock_peernet.go mocknet: bugfix on opening conns + printer 2014-12-17 23:25:40 -08:00
mock_stream.go mv net/mock2 -> net/mock 2014-12-17 23:25:40 -08:00
mock_test.go mocknet add test 2014-12-17 23:25:40 -08:00
mock.go mocknet: FullMesh connects to self too. 2014-12-17 23:25:40 -08:00