Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
c59125b6
Commit
c59125b6
authored
10 years ago
by
Juan Batiz-Benet
Committed by
Brian Tiger Chow
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved conn to own pkg
parent
5c79fc48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
net/conn/conn.go
net/conn/conn.go
+2
-2
net/conn/conn_test.go
net/conn/conn_test.go
+5
-3
No files found.
swarm
/conn.go
→
net/conn
/conn.go
View file @
c59125b6
...
...
@@ -29,8 +29,8 @@ type Conn struct {
secOut
chan
<-
[]
byte
}
//
Conn
Map maps Keys (Peer.IDs) to Connections.
type
Conn
Map
map
[
u
.
Key
]
*
Conn
// Map maps Keys (Peer.IDs) to Connections.
type
Map
map
[
u
.
Key
]
*
Conn
// Dial connects to a particular peer, over a given network
// Example: Dial("udp", peer)
...
...
This diff is collapsed.
Click to expand it.
swarm
/conn_test.go
→
net/conn
/conn_test.go
View file @
c59125b6
...
...
@@ -2,11 +2,13 @@ package swarm
import
(
"fmt"
ma
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
mh
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
peer
"github.com/jbenet/go-ipfs/peer"
"net"
"testing"
peer
"github.com/jbenet/go-ipfs/peer"
ma
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
mh
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
)
func
setupPeer
(
id
string
,
addr
string
)
(
*
peer
.
Peer
,
error
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment