Commit Graph

23 Commits

Author SHA1 Message Date
Brian Tiger Chow
503b1aa79e feat(net:service) add SetHandler method
Allows the service to be used through an interface.

NB: If the handler is exposed directly, clients of the service cannot swap out their concrete references and replace them with interfaces
2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
bccb3e871b goroutine note comment 2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
865109f562 expose handler in inet 2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
9849794b07 Move Sender interface to network pkg
@perfmode sender is exactly what we need to pass in to dht/bitswap.
2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
c7148cd83c Service: remove RequestID from SendMessage 2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
cb230b69a2 bugfix: service has a Start func
We were issuing handling goroutines in both NewService and Start
2014-09-22 04:05:16 -07:00
Juan Batiz-Benet
f9650a7906 allow service to have nil handler
@perfmode this means we can create a Service first, give it to
the network and protocol (removing interdep).
2014-09-22 04:05:16 -07:00
Brian Tiger Chow
b17bc2d54c feat(net:service) add sender interface 2014-09-22 04:05:15 -07:00
Brian Tiger Chow
68216245c6 fix(net) use NetMessage interface 2014-09-22 04:05:15 -07:00
Brian Tiger Chow
add0f3f935 feat(net:message) get net package from e2430ae427
fix(net:msg) use vendored imports
2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
f71be6e9cc merge wind HoC 2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
67e76c0acc godeps multiaddr + swarm move. 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
2b03664ae4 net interface 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
a273a03efc remove handshake for now (need to merge and move) 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
453a66709f moved stuff 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
0ac4a2ba93 swarm rewrite, doesnt yet work (tests) 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
035d600f28 Godeps: use in net + new multiaddr 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
06b651c454 Service + request 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
ffad3bb6af removed logging in conn_test 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
c59125b64c moved conn to own pkg 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
5c79fc48e2 message pkg 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
be01dcf172 mux test stop. 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
161f8158a8 added mux 2014-09-22 04:05:11 -07:00