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
p2p
go-p2p-swarm
Commits
fe940b86
Commit
fe940b86
authored
Sep 30, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrote imports to p2p
parent
0419bee1
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
39 additions
and
39 deletions
+39
-39
dial_test.go
dial_test.go
+2
-2
peers_test.go
peers_test.go
+1
-1
simul_test.go
simul_test.go
+1
-1
swarm.go
swarm.go
+5
-5
swarm_addr.go
swarm_addr.go
+2
-2
swarm_addr_test.go
swarm_addr_test.go
+3
-3
swarm_conn.go
swarm_conn.go
+4
-4
swarm_dial.go
swarm_dial.go
+5
-5
swarm_listen.go
swarm_listen.go
+5
-5
swarm_net.go
swarm_net.go
+3
-3
swarm_net_test.go
swarm_net_test.go
+2
-2
swarm_notif_test.go
swarm_notif_test.go
+2
-2
swarm_stream.go
swarm_stream.go
+1
-1
swarm_test.go
swarm_test.go
+3
-3
No files found.
dial_test.go
View file @
fe940b86
...
@@ -6,8 +6,8 @@ import (
...
@@ -6,8 +6,8 @@ import (
"testing"
"testing"
"time"
"time"
addrutil
"github.com/ipfs/go-
ipfs
/p2p/net/swarm/addr"
addrutil
"github.com/ipfs/go-
libp2p
/p2p/net/swarm/addr"
peer
"github.com/ipfs/go-
ipfs
/p2p/peer"
peer
"github.com/ipfs/go-
libp2p
/p2p/peer"
testutil
"github.com/ipfs/go-ipfs/util/testutil"
testutil
"github.com/ipfs/go-ipfs/util/testutil"
ci
"github.com/ipfs/go-ipfs/util/testutil/ci"
ci
"github.com/ipfs/go-ipfs/util/testutil/ci"
...
...
peers_test.go
View file @
fe940b86
...
@@ -3,7 +3,7 @@ package swarm
...
@@ -3,7 +3,7 @@ package swarm
import
(
import
(
"testing"
"testing"
peer
"github.com/ipfs/go-
ipfs
/p2p/peer"
peer
"github.com/ipfs/go-
libp2p
/p2p/peer"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
...
...
simul_test.go
View file @
fe940b86
...
@@ -5,8 +5,8 @@ import (
...
@@ -5,8 +5,8 @@ import (
"testing"
"testing"
"time"
"time"
peer
"github.com/ipfs/go-ipfs/p2p/peer"
ci
"github.com/ipfs/go-ipfs/util/testutil/ci"
ci
"github.com/ipfs/go-ipfs/util/testutil/ci"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
...
...
swarm.go
View file @
fe940b86
...
@@ -7,12 +7,12 @@ import (
...
@@ -7,12 +7,12 @@ import (
"sync"
"sync"
"time"
"time"
metrics
"github.com/ipfs/go-ipfs/metrics"
inet
"github.com/ipfs/go-ipfs/p2p/net"
filter
"github.com/ipfs/go-ipfs/p2p/net/filter"
addrutil
"github.com/ipfs/go-ipfs/p2p/net/swarm/addr"
peer
"github.com/ipfs/go-ipfs/p2p/peer"
logging
"github.com/ipfs/go-ipfs/vendor/go-log-v1.0.0"
logging
"github.com/ipfs/go-ipfs/vendor/go-log-v1.0.0"
inet
"github.com/ipfs/go-libp2p/p2p/net"
filter
"github.com/ipfs/go-libp2p/p2p/net/filter"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
metrics
"github.com/ipfs/go-libp2p/util/metrics"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ps
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-peerstream"
ps
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-peerstream"
...
...
swarm_addr.go
View file @
fe940b86
package
swarm
package
swarm
import
(
import
(
conn
"github.com/ipfs/go-
ipfs
/p2p/net/conn"
conn
"github.com/ipfs/go-
libp2p
/p2p/net/conn"
addrutil
"github.com/ipfs/go-
ipfs
/p2p/net/swarm/addr"
addrutil
"github.com/ipfs/go-
libp2p
/p2p/net/swarm/addr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
)
)
...
...
swarm_addr_test.go
View file @
fe940b86
...
@@ -3,10 +3,10 @@ package swarm
...
@@ -3,10 +3,10 @@ package swarm
import
(
import
(
"testing"
"testing"
metrics
"github.com/ipfs/go-ipfs/metrics"
addrutil
"github.com/ipfs/go-ipfs/p2p/net/swarm/addr"
peer
"github.com/ipfs/go-ipfs/p2p/peer"
testutil
"github.com/ipfs/go-ipfs/util/testutil"
testutil
"github.com/ipfs/go-ipfs/util/testutil"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
metrics
"github.com/ipfs/go-libp2p/util/metrics"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
...
...
swarm_conn.go
View file @
fe940b86
...
@@ -3,10 +3,10 @@ package swarm
...
@@ -3,10 +3,10 @@ package swarm
import
(
import
(
"fmt"
"fmt"
ic
"github.com/ipfs/go-
ipfs
/p2p/crypto"
ic
"github.com/ipfs/go-
libp2p
/p2p/crypto"
inet
"github.com/ipfs/go-
ipfs
/p2p/net"
inet
"github.com/ipfs/go-
libp2p
/p2p/net"
conn
"github.com/ipfs/go-
ipfs
/p2p/net/conn"
conn
"github.com/ipfs/go-
libp2p
/p2p/net/conn"
peer
"github.com/ipfs/go-
ipfs
/p2p/peer"
peer
"github.com/ipfs/go-
libp2p
/p2p/peer"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ps
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-peerstream"
ps
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-peerstream"
...
...
swarm_dial.go
View file @
fe940b86
...
@@ -8,11 +8,11 @@ import (
...
@@ -8,11 +8,11 @@ import (
"sync"
"sync"
"time"
"time"
m
conn
"github.com/ipfs/go-
ipfs/metrics
/conn"
conn
"github.com/ipfs/go-
libp2p/p2p/net
/conn"
conn
"github.com/ipfs/go-
ipfs
/p2p/net/
conn
"
addrutil
"github.com/ipfs/go-
libp2p
/p2p/net/
swarm/addr
"
addrutil
"github.com/ipfs/go-
ipfs/p2p/net/swarm/add
r"
peer
"github.com/ipfs/go-
libp2p/p2p/pee
r"
peer
"github.com/ipfs/go-
ipfs/p2p/peer
"
lgbl
"github.com/ipfs/go-
libp2p/util/eventlog/loggables
"
lgbl
"github.com/ipfs/go-
ipfs/util/eventlog/loggables
"
mconn
"github.com/ipfs/go-
libp2p/util/metrics/conn
"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
manet
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net"
manet
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net"
...
...
swarm_listen.go
View file @
fe940b86
...
@@ -3,11 +3,11 @@ package swarm
...
@@ -3,11 +3,11 @@ package swarm
import
(
import
(
"fmt"
"fmt"
mconn
"github.com/ipfs/go-
ipfs/metrics/conn
"
inet
"github.com/ipfs/go-
libp2p/p2p/net
"
inet
"github.com/ipfs/go-
ipfs
/p2p/net"
conn
"github.com/ipfs/go-
libp2p
/p2p/net
/conn
"
conn
"github.com/ipfs/go-
ipfs
/p2p/net/
conn
"
addrutil
"github.com/ipfs/go-
libp2p
/p2p/net/
swarm/addr
"
addruti
l
"github.com/ipfs/go-
ipfs/p2p/net/swarm/addr
"
lgb
l
"github.com/ipfs/go-
libp2p/util/eventlog/loggables
"
lgbl
"github.com/ipfs/go-
ipfs/util/eventlog/loggables
"
mconn
"github.com/ipfs/go-
libp2p/util/metrics/conn
"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
manet
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net"
manet
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net"
...
...
swarm_net.go
View file @
fe940b86
...
@@ -3,10 +3,10 @@ package swarm
...
@@ -3,10 +3,10 @@ package swarm
import
(
import
(
"fmt"
"fmt"
peer
"github.com/ipfs/go-
ipfs
/p2p/peer"
peer
"github.com/ipfs/go-
libp2p
/p2p/peer"
metrics
"github.com/ipfs/go-
ipfs/metrics
"
inet
"github.com/ipfs/go-
libp2p/p2p/net
"
inet
"github.com/ipfs/go-
ipfs/p2p/net
"
metrics
"github.com/ipfs/go-
libp2p/util/metrics
"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/goprocess"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/goprocess"
...
...
swarm_net_test.go
View file @
fe940b86
...
@@ -6,8 +6,8 @@ import (
...
@@ -6,8 +6,8 @@ import (
"time"
"time"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
inet
"github.com/ipfs/go-
ipfs
/p2p/net"
inet
"github.com/ipfs/go-
libp2p
/p2p/net"
testutil
"github.com/ipfs/go-
ipfs
/p2p/test/util"
testutil
"github.com/ipfs/go-
libp2p
/p2p/test/util"
)
)
// TestConnectednessCorrect starts a few networks, connects a few
// TestConnectednessCorrect starts a few networks, connects a few
...
...
swarm_notif_test.go
View file @
fe940b86
...
@@ -7,8 +7,8 @@ import (
...
@@ -7,8 +7,8 @@ import (
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
inet
"github.com/ipfs/go-
ipfs
/p2p/net"
inet
"github.com/ipfs/go-
libp2p
/p2p/net"
peer
"github.com/ipfs/go-
ipfs
/p2p/peer"
peer
"github.com/ipfs/go-
libp2p
/p2p/peer"
)
)
func
TestNotifications
(
t
*
testing
.
T
)
{
func
TestNotifications
(
t
*
testing
.
T
)
{
...
...
swarm_stream.go
View file @
fe940b86
package
swarm
package
swarm
import
(
import
(
inet
"github.com/ipfs/go-
ipfs
/p2p/net"
inet
"github.com/ipfs/go-
libp2p
/p2p/net"
ps
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-peerstream"
ps
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-peerstream"
)
)
...
...
swarm_test.go
View file @
fe940b86
...
@@ -9,10 +9,10 @@ import (
...
@@ -9,10 +9,10 @@ import (
"testing"
"testing"
"time"
"time"
metrics
"github.com/ipfs/go-ipfs/metrics"
inet
"github.com/ipfs/go-ipfs/p2p/net"
peer
"github.com/ipfs/go-ipfs/p2p/peer"
testutil
"github.com/ipfs/go-ipfs/util/testutil"
testutil
"github.com/ipfs/go-ipfs/util/testutil"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
metrics
"github.com/ipfs/go-libp2p/util/metrics"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
...
...
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