[Nice] Serializing NiceCandidate...
Tony Di Croce
dicroce at gmail.com
Tue Aug 24 08:40:11 PDT 2010
Great! Thanks for your help... I'm now successfully talking to my stun
Regarding NiceCandidate.username and NiceCandidate.password... Is it safe to
assume that those strings are subject to the same size limit as the strings
passed to nice_agent_set_remote_credentials() (I.E. the username and
password have a max size of 256 bytes)? It's convenient if that is true
because it means that a NiceCandidate can be serialized into a completely
fixed length structure...
BTW, what is best practice for generating the username and password pair?
Should I just generate random strings for those? Perhaps a UUID?
On Mon, Aug 23, 2010 at 5:34 PM, Youness Alaoui <
youness.alaoui at collabora.co.uk> wrote:
> FYI, You don't need everything from the structure, the 'turn' attribute is
> internal and useless for you, same for priority.
> Have a look at the RFC on how to encode the SDP, it might help you
> how to 'serialize' the candidate :
> On 08/23/2010 08:06 PM, Youness Alaoui wrote:
> > No, that's used only internally, you don't need to read it or write it or
> > anything like that!
> > The documentation says "the underlying socket", I thought it would be
> > clear...
> > On 08/23/2010 08:04 PM, Tony Di Croce wrote:
> >> I have to serialize and transmit NiceCandidate objects from one peer to
> >> another... The only field i'm unsure about how to proceed with is
> >> "sockptr"... This is defined as a gpointer... When I reconstruct these
> >> CandidateObjects on the other side of a network connection this member
> >> will be NULL... Is that OK, or should i initialize it in some way?
> >> td
> >> _______________________________________________
> >> Nice mailing list
> >> Nice at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/nice
> > _______________________________________________
> > Nice mailing list
> > Nice at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/nice
> Nice mailing list
> Nice at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nice