<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 07/05/2009, at 7:10 AM, Gaspard Bucher wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi list !<br><br>I am trying to port some code from dns-sd to avahi and I get an<br>"Invalid service name" error...<br><br>Any idea why a service name like "_oscit._udp" fails ?<br><br>Since the project is open source, the code is visible at<br><a href="http://tinyurl.com/d4ypf5">http://tinyurl.com/d4ypf5</a><br><br>Thanks for any advice...<br><br>Gaspard<br><br></div></blockquote></div><br><div>Have you tried putting this in as a literal string [ "_oscit._udp"], rather than as a variable that you convert to a c string [<span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans Mono'; line-height: 17px; white-space: pre; "><span class="n" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.4em; ">master_</span><span class="o" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.4em; font-weight: bold; ">-></span><span class="n" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.4em; ">service_type_</span><span class="p" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.4em; ">.</span><span class="n" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.4em; ">c_str</span><span class="p" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.4em; ">() ]<span class="Apple-style-span" style="font-family: Helvetica; line-height: normal; white-space: normal; ">&nbsp;? Unless your using subtypes the service type is static in most cases.</span></span></span></div><div><br></div><div>Rob</div></body></html>