This is a limitation in slptool, admittedly, and it could be extended to provide the additional functionality, so if someone is prepared to do it, I certainly have no objection, provided it is backwards compatible ie. the syntax needs to provide for an optional lifetime. Note that slptool already provides the "-l" option to specify the language.
-----Original Message----- From: Varun Chandramohan [mailto:var...@linux.vnet.ibm.com] Sent: 05 October 2010 11:01 To: openslp-devel@lists.sourceforge.net Cc: Morrell Richard (external) Subject: Re: [Openslp-devel] problems with slp service registrations Hi Richard, I think we need not bother about it as slptool is just a sample program. However any application written on top of libslp must be able to parse the code provide the lifetime. right? Should we fix this for slptool or leave it as it is? Regards, Varun On Tuesday, October 05, 2010 02:00:19 pm Morrell Richard (external) wrote: > slptool doesn't parse the language and lifetime, and uses the default > lifetime (3 hours, 10800 seconds) for registrations. You can see this in > the result of the findsrvs, where the line ends with ",en,60,10800" - the > ",en,60" is treated as part of the URL. > > However, the code that processes the static registrations does parse the > language and lifetime, but note that it searches for the first comma in the > URL, and takes the following text up to the next comma or end of string as > the language, and the text (number) from the second comma (if present) up to > the end as the lifetime. The URL must therefore not contain any embedded > commas. > > I have tested this on my installation (revision 1629), with a registration > in slp.reg that is set to have a lifetime of 180s. It counts down as > expected, and disappears after 3 minutes. > > Note that 65535 is a special value that means "unlimited", and means the > daemon will never time it out and delete it. > > -----Original Message----- > From: Varun Chandramohan [mailto:var...@linux.vnet.ibm.com] > Sent: 05 October 2010 07:40 > To: openslp-devel@lists.sourceforge.net > Subject: Re: [Openslp-devel] problems with slp service registrations > > > On Tuesday, October 05, 2010 10:55:44 am Varun Chandramohan wrote: > > slptool register service:ssh.openslp://9.47.81.70:22 > > This also seem to work fine for me. I did notice something funny. Didnt > check fully though. > > [r...@llm86 openslp]# slptool register > service:ssh.openslp://9.47.81.70:22,en,60 > [r...@llm86 openslp]# slptool -u localhost findsrvs service:ssh.openslp > service:ssh.openslp://9.47.81.70:22,en,60,10800 > [r...@llm86 openslp]# slptool -u localhost findsrvs service:ssh.openslp > service:ssh.openslp://9.47.81.70:22,en,60,10800 > [r...@llm86 openslp]# slptool -u localhost findsrvs service:ssh.openslp > service:ssh.openslp://9.47.81.70:22,en,60,10785 > [r...@llm86 openslp]# slptool -u localhost findsrvs service:ssh.openslp > service:ssh.openslp://9.47.81.70:22,en,60,10770 > [r...@llm86 openslp]# slptool -u localhost findsrvs service:ssh.openslp > service:ssh.openslp://9.47.81.70:22,en,60,10770 > [r...@llm86 openslp]# slptool -u localhost findsrvs service:ssh.openslp > service:ssh.openslp://9.47.81.70:22,en,60,10755 > [r...@llm86 openslp]# vi /usr/local/etc/slp.reg > [r...@llm86 openslp]# slptool -u localhost findsrvs service:ssh.openslp > service:ssh.openslp://9.47.81.70:22,en,60,10695 > [r...@llm86 openslp]# slptool -u localhost findsrvs service:ssh.openslp > service:ssh.openslp://9.47.81.70:22,en,60,10620 > > I wanted timeout as 60sec but i see it uses 10800 as secs. Iam not sure why. > This is something to look at. > > And secondly, make sure in slp.conf you set > net.slp.watchRegistrationPID = false > > If this is not set, as soon as the process which created the registration > dies (slptool in this case), the reg is removed. > > Regards, > Varun > > ---------------------------------------------------------------------------- > -- > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Openslp-devel mailing list > Openslp-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openslp-devel > > This email, including any attachment, is a confidential communication > intended solely for the use of the individual or entity to whom it is > addressed. It contains information which is private and may be proprietary > or covered by legal professional privilege. If you have received this email > in error, please notify the sender upon receipt, and immediately delete it > from your system. > > Anything contained in this email that is not connected with the businesses > of this company is neither endorsed by nor is the liability of this company. > > Whilst we have taken reasonable precautions to ensure that any attachment to > this email has been swept for viruses, we cannot accept liability for any > damage sustained as a result of software viruses, and would advise that you > carry out your own virus checks before opening any attachment. > > > ---------------------------------------------------------------------------- -- > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Openslp-devel mailing list > Openslp-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openslp-devel > This email, including any attachment, is a confidential communication intended solely for the use of the individual or entity to whom it is addressed. It contains information which is private and may be proprietary or covered by legal professional privilege. If you have received this email in error, please notify the sender upon receipt, and immediately delete it from your system. Anything contained in this email that is not connected with the businesses of this company is neither endorsed by nor is the liability of this company. Whilst we have taken reasonable precautions to ensure that any attachment to this email has been swept for viruses, we cannot accept liability for any damage sustained as a result of software viruses, and would advise that you carry out your own virus checks before opening any attachment. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel