[Bug 29218] TpStreamTube - high level stream tube API

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 7 12:30:20 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29218

--- Comment #12 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2010-09-07 03:30:20 PDT ---
So, I implemented Credentials support which works fine. Then I tried to
implement (IPv4, Port) support and hit an issue.

We are supposed to pass the (ip, port) from where we are going to connect to
Accept(). That means we should create the client socket before calling Accept
which is not a big deal.
But that raises another problem: this API doesn't let the accepter connect more
than once to the tube.

Maybe we should have _accept_async() and connect_async() with connect_finish()
returning the GIOStream.
We could have a accept_and_connect_async() as an helper for the most common
case.

That also means that we shouldn't use Port except if we know for sure that
we'll have only one connection. Maybe accept_and_connect_async() should state
that you can't use connect_async() later so we know that we'll have one
connection and so can use Port?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list