<div dir="ltr">Thanks a lot Martin , that information was very helpful. I am currently reading on IPP however just for the sake of it to see if my printer called "SomePrinter" is being broadcasted by Avahi I did the following<div><br></div><div>I created the following .service file and placed it in the services folder</div><div><br></div><div>







<p class=""><span class=""><?xml version="1.0" standalone='no'?></span></p>
<p class=""><span class=""><!DOCTYPE service-group SYSTEM "avahi-service.dtd"></span></p>
<p class=""><span class=""><service-group></span></p>
<p class=""><span class="">  <name replace-wildcards="yes">SomePrinter %h</name></span></p>
<p class=""><span class="">  <service></span></p>
<p class=""><span class="">    <type>_ipp._tcp</type></span></p>
<p class=""><span class="">    <port>631</port></span></p>
<p class=""><span class="">  </service></span></p>
<p class=""><span class=""></service-group></span></p><p class=""><span class=""><br></span></p><p class=""><span class="">I then restarted avahi with the expectation of seeing SomePrinter showing up via Bonjour. Unfortunately that did not happen. Any suggestions on what I might be missing ? </span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 24, 2015 at 4:32 AM, Martin Nyolt <span dir="ltr"><<a href="mailto:8e3b3cde@gmail.com" target="_blank">8e3b3cde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Rajesh,<br>
<br>
This is probably not the right mailing list for your problem.<br>
<br>
Avahi (Zeroconf) is just an advertisement of services on your network.<br>
For instance with avahi you can advertise a printing service using the Internet Printing Protocol (IPP) over tcp at port 631.<br>
In avahi, you would publish this example as type _ipp._tcp at port 631.<br>
<br>
Avahi itself does not implement the actual service in any way. This is the responsibility of the service that told avahi to publish it (in this case this would be you).<br>
<br>
So, yes: you would have to listen on the port you are advertising.<br>
The choice of protocol depends on your application and clients, of course.<br>
The kind of data you receive then depends on the service type you are advertising and the clients who assume they can speak to that service using the published protocol.<br>
To support a wide range of clients, you will probably want to use an established protocol, such as IPP.<br>
<br>
So you probably want to do some research on available printing protocols. I do not know them in detail.<br>
This definitely goes beyond the scope of this list. Avahi is just concerned with the advertisement of that service, not with the actual service.<br>
<br>
Best regards,<br>
Martin<span class=""><br>
<br>
On 24/12/15 06:43, Rajesh Khan wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hello all , I have been stuck on this issue for a while and wanted to know<br>
what my options are.<br>
I currently have an embedded device running embedded linux.<br>
Now I would like to advertise that device as a printer via Avahi (the<br>
device itself is not a printer). My current embedded linux flavour does not<br>
have CUPS installed in it and I would like to avoid it if possible.I<br>
recently found out that I could advertise my device using avahi-publish(1)<br></span>
<<a href="http://avahi.org/download/avahi-publish.1.xml" rel="noreferrer" target="_blank">http://avahi.org/download/avahi-publish.1.xml</a>>.  I have not tested this<span class=""><br>
yet.Now suppose this works.<br>
My question is what kind of data will my device receive if a user selects<br>
this newly advertised printer and issues a print command  from a text<br>
editor (say using textmate).I would like to manipulate that data on my<br>
device.Will my device need to be listening on a certain socket/port ? How<br>
will I receive that data ? What will be the format of that data ? Any<br>
suggestions or hints on this would be more than appreciated.<br>
<br>
<br>
</span></blockquote>
_______________________________________________<br>
avahi mailing list<br>
<a href="mailto:avahi@lists.freedesktop.org" target="_blank">avahi@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/avahi" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/avahi</a><br>
</blockquote></div><br></div>