Commit Graph

9 Commits

Author SHA1 Message Date
Jeromy
b0f4b7c89d some net docs 2014-11-08 21:42:36 -08:00
Jeromy
d92db12460 lots of logging 2014-10-26 00:45:40 +00:00
Juan Batiz-Benet
9ca87fbb93 peer.Peer is now an interface
![](http://m.memegen.com/77n7dk.jpg)
2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
3d2ba37445 moved ctxcloser to own pkg 2014-10-19 06:38:13 -07:00
Juan Batiz-Benet
68b85c992b broke out dial + listen 2014-10-19 03:33:56 -07:00
Juan Batiz-Benet
0078264a5b added to net/conn interface 2014-10-18 20:01:27 -07:00
Juan Batiz-Benet
ffba031469 test closing/cancellation
- does end properly
- no goroutines leaked!
2014-10-18 04:36:20 -07:00
Juan Batiz-Benet
7a7bf8d839 conn: raw []byte, not msg
This commit actually removes the previously introduced
chan net.NetMessage, in favor of raw []byte. It plays
nicer with crypto/spipe, and it makes more sense in the
context of a "single connection", i.e. I already know the
peer I'm talking to, from the connection. The NetMessage
additional Peer is useful swarm and up.
2014-10-18 04:36:20 -07:00
Juan Batiz-Benet
5681e27304 reworked Conn 2014-10-18 04:28:26 -07:00