2012-03-14 68 views
1

我想使用http://praxis.edoceo.com/howto/cups-airprint的指令发布我的本地打印机,但使用mDNSResponder而不是Avahi。这不是哪一个是的avahi可以做到这一点更好,它有记载,但关于如何实现同与mDNSResponder子类型和mDNSResponder

myserver.local. 
_ipp._tcp _universal._sub._ipp._tcp 
631 
txtvers=1 
qtotal=1 
ty=Canon iP4300 
note=I am an AirPrint Printer 
product=(Canon iP4300) 
rp=printers/CannoniP4300 
product=(GPL Ghostscript) 
pdl=application/pdf,application/postscript,application/vnd.cups-raster,applicati 
printer-state=3 
URF=none 

的问题是,我不知道如何指定亚型(_universal ._sub._ipp._tcp),这是AirPrint工作所必需的。

回答

1

在C#其通过使用以下表示法把指定subytype在注册方法的“regtype”参数来完成。我希望它在库的linux版本中是一样的。

"_ipp._tcp,_universal" 

HTH 本