Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
7d201894
Commit
7d201894
authored
8 years ago
by
Jeromy Johnson
Committed by
GitHub
8 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #141 from libp2p/feat/get-streams
update packages to add support for getStreams
parents
7506bac7
1bad77c7
master
2018-Q4-OKR
docs-improvements
feat/p2p-multiaddr
feat/pnet/working3
feat/protobuf
feat/relay-integrate
feat/udp
feature/standardize-readme
fix/473
fix/no-custom-field
fix/reset-ping-stream
fix/revert-correct-external-addr
gx/update-jccl6u
gx/update-nza0mn
jenkinsfile
kevina/fix-go-vet
multistream-ping
punching
revert-276-update-go-detect-race
v6.0.23
v6.0.22
v6.0.21
v6.0.20
v6.0.19
v6.0.18
v6.0.17
v6.0.16
v6.0.15
v6.0.14
v6.0.13
v6.0.12
v6.0.11
v6.0.10
v6.0.9
v6.0.8
v6.0.7
v6.0.6
v6.0.5
v6.0.4
v6.0.3
v6.0.2
v6.0.1
v6.0.0
v5.0.21
v5.0.20
v5.0.19
v5.0.18
v5.0.17
v5.0.16
v5.0.15
v5.0.14
v5.0.13
v5.0.12
v5.0.11
v5.0.10
v5.0.9
v5.0.8
v5.0.7
v5.0.6
v5.0.5
v5.0.4
v5.0.3
v5.0.2
v5.0.1
v5.0.0
v4.5.5
v4.5.4
v4.5.3
v4.5.2
v4.5.1
v4.5.0
v4.4.5
v4.4.4
v4.4.3
v4.4.2
v4.4.1
v4.4.0
v4.3.12
v4.3.11
v4.3.10
v4.3.9
v4.3.8
v4.3.7
v4.3.6
v4.3.5
v4.3.4
v4.3.3
v4.3.2
v4.3.1
v4.3.0
v4.2.0
v4.1.0
v4.0.4
v4.0.3
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
p2p/net/mock/mock_conn.go
+8
-0
p2p/net/mock/mock_conn.go
p2p/test/reconnects/reconnect_test.go
+1
-1
p2p/test/reconnects/reconnect_test.go
package.json
+14
-14
package.json
with
23 additions
and
15 deletions
+23
-15
p2p/net/mock/mock_conn.go
View file @
7d201894
...
...
@@ -118,6 +118,14 @@ func (c *conn) NewStream() (inet.Stream, error) {
return
s
,
nil
}
func
(
c
*
conn
)
GetStreams
()
([]
inet
.
Stream
,
error
)
{
var
out
[]
inet
.
Stream
for
e
:=
c
.
streams
.
Front
();
e
!=
nil
;
e
=
e
.
Next
()
{
out
=
append
(
out
,
e
.
Value
.
(
*
stream
))
}
return
out
,
nil
}
// LocalMultiaddr is the Multiaddr on this side
func
(
c
*
conn
)
LocalMultiaddr
()
ma
.
Multiaddr
{
return
c
.
localAddr
...
...
This diff is collapsed.
Click to expand it.
p2p/test/reconnects/reconnect_test.go
View file @
7d201894
...
...
@@ -10,12 +10,12 @@ import (
u
"github.com/ipfs/go-ipfs-util"
logging
"github.com/ipfs/go-log"
ps
"github.com/jbenet/go-peerstream"
host
"github.com/libp2p/go-libp2p-host"
inet
"github.com/libp2p/go-libp2p-net"
protocol
"github.com/libp2p/go-libp2p-protocol"
swarm
"github.com/libp2p/go-libp2p-swarm"
testutil
"github.com/libp2p/go-libp2p/p2p/test/util"
ps
"github.com/libp2p/go-peerstream"
)
func
init
()
{
...
...
This diff is collapsed.
Click to expand it.
package.json
View file @
7d201894
...
...
@@ -114,9 +114,9 @@
"version"
:
"0.0.0"
},
{
"hash"
:
"Qm
RmFKJgjjQhrT1uDyhpS87kE5M9YbMT8RBWam5uk8o4uH
"
,
"hash"
:
"Qm
S9en3mcwW2HRSeRabceJEGVxTZF4vEeFm7JHWQwWsb1U
"
,
"name"
:
"go-peerstream"
,
"version"
:
"1.
1.0
"
"version"
:
"1.
4.1
"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -210,39 +210,39 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
diBXu57LDzaoovc89jypRSNEhxVZ4zRig2AsXm9VwrsS
"
,
"hash"
:
"Qm
U1YMnktAuCPBC7TqhbZRkpZ7KCiekv7SZtaLU5zpTgqb
"
,
"name"
:
"go-libp2p-conn"
,
"version"
:
"1.
2.1
"
"version"
:
"1.
4.0
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qmd
XimY9QHaasZmw6hWojWnCJvfgxETjZQfg9g6ZrA9wMX
"
,
"hash"
:
"Qmd
ysBu77i3YaagNtMAjiCJdeWWvds18ho5XEB784guQ41
"
,
"name"
:
"go-libp2p-net"
,
"version"
:
"1.
2.1
"
"version"
:
"1.
5.0
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
WpTXhTkpoCDEm9twJd5Rc9jFwy61emzxneeJzrVMfjGF
"
,
"hash"
:
"Qm
VcNzHewFvmVah1CGqg8NV7nHHsPu19U43YE5b2oqWyBp
"
,
"name"
:
"go-libp2p-metrics"
,
"version"
:
"1.
2
.0"
"version"
:
"1.
5
.0"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
NxScD426NivSWRNJdLVfXLrzVdtNWxW74EnXAWJvgGwh
"
,
"hash"
:
"Qm
ctX4TY6jXtpfeDiwMGoB4qVTBGDnz7T7r22CwQSzTgwt
"
,
"name"
:
"go-libp2p-interface-conn"
,
"version"
:
"0.
1.2
"
"version"
:
"0.
4.0
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
dML3R42PRSwnt46jSuEts9bHSqLctVYEjJqMR3UYV8ki
"
,
"hash"
:
"Qm
Wf338UyG5DKyemvoFiomDPtkVNHLsw3GAt9XXHX5ZtsM
"
,
"name"
:
"go-libp2p-host"
,
"version"
:
"1.1.
0
"
"version"
:
"1.1.
1
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
TsTADtVpWhp2CYpAqDJWYSK94gMzhE77mQKbp18oC4PK
"
,
"hash"
:
"Qm
Ye8b7yWBaaE4bxoG9UB1pvSYkcXnNAMP664iJfnvH4i5
"
,
"name"
:
"go-libp2p-swarm"
,
"version"
:
"1.
2.0
"
"version"
:
"1.
3.2
"
},
{
"author"
:
"whyrusleeping"
,
...
...
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
Menu
Projects
Groups
Snippets
Help