Skip to content

How can I actually use withAutoConnect(false)? #212

@brett-smith

Description

@brett-smith

I am trying to make use of DirectConnection, but have hit an issue with reliable synchronization of start up of the client and server parts of the code.

This problem is actually demonstrated by the TestPeer2Peer test, which I believe only actually works more through luck than actually being 100% solid. I intend to raise a separate issue for this, as it may take a little explanation.

Anyway, to work around the problem, I need to use withAutoConnect(). This gives me a DirectConnection with an unconnected transport, but I see no way to then get at the AbstractTransport to call listen() myself (in a new thread).

Is there something in the API I am missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions