Skip to content

Add swarm command#359

Merged
jbenet merged 3 commits intomasterfrom
feat/swarm-cmd
Nov 18, 2014
Merged

Add swarm command#359
jbenet merged 3 commits intomasterfrom
feat/swarm-cmd

Conversation

@jbenet
Copy link
Member

@jbenet jbenet commented Nov 18, 2014

This will be useful for

  • inspection
  • testing (sharness)
  • webui

@jbenet jbenet added the status/in-progress In progress label Nov 18, 2014
@whyrusleeping
Copy link
Member

👍

@btc
Copy link
Contributor

btc commented Nov 18, 2014

LGTM

jbenet added a commit that referenced this pull request Nov 18, 2014
@jbenet jbenet merged commit 1c36d52 into master Nov 18, 2014
@jbenet jbenet removed the status/in-progress In progress label Nov 18, 2014
@jbenet jbenet deleted the feat/swarm-cmd branch November 18, 2014 10:11
@jbenet
Copy link
Member Author

jbenet commented Nov 18, 2014

Now these work:

# explicitly connect to a peer
> ipfs2 swarm connect /ip4/192.168.1.221/tcp/4001/QmdcQL8YadJNaTAjG1AH2fH6BUwBKzYQCDtqWk79JGwtz2
connect QmdcQL8YadJNaTAjG1AH2fH6BUwBKzYQCDtqWk79JGwtz2 success

# list the peers we're connected to
> ipfs2 swarm peers
/ip4/104.131.131.82/tcp/4001/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
/ip4/192.168.1.142/tcp/4101/QmYT2Bc83dhS8oPquggQa98urzjSTEMpKKr2YEgxQinVJJ
/ip4/192.168.1.227/tcp/4001/QmYzAjMtCNKyBJ6SdsGm2xfo9G46XWeZEL2QoXjs2Z1cAV
/ip4/192.168.1.221/tcp/4001/QmdcQL8YadJNaTAjG1AH2fH6BUwBKzYQCDtqWk79JGwtz2

@btc
Copy link
Contributor

btc commented Nov 18, 2014

❤️

@whyrusleeping
Copy link
Member

can you connect to a peer without their peer ID? Also, would be neat to now have a dht subcommand to allow us to be able to run find-peer RPC's so we can say: ipfs dht connect <peer ID>

@jbenet
Copy link
Member Author

jbenet commented Nov 19, 2014

can you connect to a peer without their peer ID?

Not presently. we could add it. i'm wary of introducing ways to connect to things based on unauthenticated addresses. I'm heartened by the explicit address-driven PK distribution.

Also, would be neat to now have a dht subcommand to allow us to be able to run find-peer RPC's so we can say: ipfs dht connect <peer ID>

Yep, we'll get there -- #138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants