Great! Thanks for your help... I'm now successfully talking to my stun server...<br><br>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...<br>
<br>BTW, what is best practice for generating the username and password pair? Should I just generate random strings for those? Perhaps a UUID?<br><br> td<br><br><div class="gmail_quote">On Mon, Aug 23, 2010 at 5:34 PM, Youness Alaoui <span dir="ltr"><<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">FYI, You don't need everything from the structure, the 'turn' attribute is also<br>
internal and useless for you, same for priority.<br>
Have a look at the RFC on how to encode the SDP, it might help you understand<br>
how to 'serialize' the candidate :<br>
<a href="http://tools.ietf.org/html/rfc5245#section-4.3" target="_blank">http://tools.ietf.org/html/rfc5245#section-4.3</a><br>
<div><div></div><div class="h5"><br>
On 08/23/2010 08:06 PM, Youness Alaoui wrote:<br>
> No, that's used only internally, you don't need to read it or write it or<br>
> anything like that!<br>
> The documentation says "the underlying socket", I thought it would be pretty<br>
> clear...<br>
><br>
> On 08/23/2010 08:04 PM, Tony Di Croce wrote:<br>
>><br>
>> I have to serialize and transmit NiceCandidate objects from one peer to<br>
>> another... The only field i'm unsure about how to proceed with is<br>
>> "sockptr"... This is defined as a gpointer... When I reconstruct these<br>
>> CandidateObjects on the other side of a network connection this member<br>
>> will be NULL... Is that OK, or should i initialize it in some way?<br>
>><br>
>> td<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Nice mailing list<br>
>> <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a><br>
>> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Nice mailing list<br>
> <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br>
<br>
</div></div><br>_______________________________________________<br>
Nice mailing list<br>
<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br></blockquote></div><br>