[Bug 29218] TpStreamTube - high level stream tube API

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 6 15:03:22 CEST 2010


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

--- Comment #33 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2010-10-06 06:03:22 PDT ---
(In reply to comment #32)
> > > +        /* FIXME: set the address of the socket. Gio doesn't seem to have API
> > > +         * to get the port before connecting without specifying the whole
> > > +         * adress (we can't as we don't know which ports are available). */
> > 
> > You have to do a GIO-flavoured version of this pseudocode:
> > 
> > sock = socket (AF_INET, SOCK_STREAM, 0);
> > bind (sock, addr={ AF_INET, sin_port=0, sin_addr=IN_ADDR_ANY }, addr_len);
> > getsockname (sock, &real_addr, real_addr_len);
> > /* time passes */
> > connect (sock, blah blah blah);
> > 
> > I think the GIO version of that might be to make the GSocketClient earlier,
> > call g_socket_client_set_local_address() for IN_ADDR_ANY with port 0, then call
> > g_socket_client_get_local_address() to find out what the kernel actually gave
> > us?
> 
> Unfortunatelly that doesn't work :( I opened
> https://bugzilla.gnome.org/show_bug.cgi?id=631316 about this issue.

I managed to do it using a lower level API (GSocket).

I added documentation so I think the branch is now ready for review.


I have this error when checking the doc but have no idea why:
0 symbols incomplete.
0 not documented.
copy_func
^^^ Unused symbols
Documentation check failed

-- 
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