Closed brett-smith closed 1 year ago
You are right, the method to connect a not-auto-connected transport is missing.
I updated the current code to include a connect()
method which will connect the transport if it wasn't connected before.
Great, thanks for fast response.
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 aDirectConnection
with an unconnected transport, but I see no way to then get at theAbstractTransport
to calllisten()
myself (in a new thread).Is there something in the API I am missing?