[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-avahi
Subject:    Re: [avahi] Invalid service name error
From:       Robin Perkins <robin.perkins () internode ! on ! net>
Date:       2009-05-07 13:34:01
Message-ID: E549684A-0EFC-4E5E-90FC-DFD60A875721 () internode ! on ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 07/05/2009, at 7:10 AM, Gaspard Bucher wrote:

> Hi list !
>
> I am trying to port some code from dns-sd to avahi and I get an
> "Invalid service name" error...
>
> Any idea why a service name like "_oscit._udp" fails ?
>
> Since the project is open source, the code is visible at
> http://tinyurl.com/d4ypf5
>
> Thanks for any advice...
>
> Gaspard
>

Have you tried putting this in as a literal string [ "_oscit._udp"],  
rather than as a variable that you convert to a c string [master_- 
 >service_type_.c_str() ] ? Unless your using subtypes the service  
type is static in most cases.

Rob
[Attachment #5 (text/html)]

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



_______________________________________________
avahi mailing list
avahi@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/avahi


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic