Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Corenet exposure #160

Closed
Closed
@magik6k

Description

@magik6k

This describes another approach at ipfs/kubo#2765.

The way it could be done without rewriting API to support streaming protocols is to point corenet service at external(TCP for example) server. API for this would be like

/api/v0/corenet/listen?arg=[listener]&arg=[proto-name]
Listener is address of server waiting for connections from corenet, multiaddr like /ip4/127.0.0.1/tcp/2454. Protocol name would just be service name in corenet.

/api/v0/corenet/dial?arg=[listener]&arg=[peer-id]&arg=[proto-name]
Listener and protocol name as above, peer ID is just corenet peer.

In both cases first packet sent is just peer address as string with byte before it telling address length, after that there is raw communication via new corenet connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions