openslp-users Mailing List for OpenSLP (Page 8)
Brought to you by:
jcalcote
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(10) |
Jun
(5) |
Jul
(2) |
Aug
(3) |
Sep
(7) |
Oct
(10) |
Nov
(3) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
|
Feb
(6) |
Mar
(1) |
Apr
(1) |
May
(5) |
Jun
(7) |
Jul
(5) |
Aug
(10) |
Sep
(6) |
Oct
(26) |
Nov
(3) |
Dec
(1) |
2002 |
Jan
(9) |
Feb
(8) |
Mar
(5) |
Apr
(1) |
May
(12) |
Jun
(6) |
Jul
(8) |
Aug
(9) |
Sep
(12) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
2003 |
Jan
(8) |
Feb
(13) |
Mar
(17) |
Apr
(7) |
May
|
Jun
(7) |
Jul
(2) |
Aug
(9) |
Sep
(4) |
Oct
(9) |
Nov
|
Dec
(2) |
2004 |
Jan
(5) |
Feb
(3) |
Mar
(3) |
Apr
(4) |
May
(7) |
Jun
(2) |
Jul
(2) |
Aug
(6) |
Sep
(9) |
Oct
(5) |
Nov
(7) |
Dec
(10) |
2005 |
Jan
(3) |
Feb
(3) |
Mar
(2) |
Apr
(1) |
May
(4) |
Jun
(9) |
Jul
(10) |
Aug
(6) |
Sep
(9) |
Oct
(4) |
Nov
(5) |
Dec
(1) |
2006 |
Jan
(3) |
Feb
(1) |
Mar
(33) |
Apr
|
May
(1) |
Jun
(13) |
Jul
(14) |
Aug
(10) |
Sep
(13) |
Oct
(19) |
Nov
(17) |
Dec
(13) |
2007 |
Jan
(12) |
Feb
(34) |
Mar
|
Apr
|
May
(3) |
Jun
(5) |
Jul
(7) |
Aug
(9) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2008 |
Jan
(5) |
Feb
(6) |
Mar
|
Apr
(3) |
May
(16) |
Jun
|
Jul
(1) |
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
(8) |
Jul
(9) |
Aug
(1) |
Sep
|
Oct
|
Nov
(2) |
Dec
(1) |
2010 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
(3) |
Jun
(2) |
Jul
(20) |
Aug
(10) |
Sep
(31) |
Oct
|
Nov
|
Dec
(8) |
2012 |
Jan
(7) |
Feb
|
Mar
(4) |
Apr
(11) |
May
(5) |
Jun
|
Jul
|
Aug
(6) |
Sep
(4) |
Oct
(33) |
Nov
(5) |
Dec
(1) |
2013 |
Jan
(19) |
Feb
(6) |
Mar
(1) |
Apr
(1) |
May
(11) |
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(5) |
Oct
|
Nov
(3) |
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(1) |
2023 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ramakrishnan s <ram...@ho...> - 2011-09-13 08:48:44
|
Hi Nick, I made sure that ENABLE_SLPv1 is turned on. I have only tried with SLP v1 attribute request. I stepped through the code and saw that SLPv1ProcessMessage() function returns SLP_ERROR_VER_NOT_SUPPORTED. When I sniffed the packets, i don't see any response sent by OpenSLP after receiving the service attribute request. I have not enabled DA functionality as I only require SA functionality. I am using OpenSLP version 1.2.1 (openslpp-1.2.1.tar.gz). Thanks for the help. -Ram Date: Mon, 12 Sep 2011 09:49:18 -0500 Subject: Re: [Openslp-users] SLPv1 support From: ne...@wi... To: ram...@ho... CC: ope...@li... >From what I can see, the default for the linux build is to enable SLPv1 support via the ENABLE_SLPv1 preprocessor definition. Is ENABLE_SLPv1 defined for your build? You said it doesn't respond to attribute requests. If you sniff it, do you see it responding to any v1 requests? What version are you using? --Nick On Mon, Sep 12, 2011 at 4:40 AM, Ramakrishnan s <ram...@ho...> wrote: Hi, I am trying integrate OpenSLP inside my printer FW. Printer FW is running on Linux (2.6.32 Kernel). We have a host software that is trying to discover printers using SLPv1. During my testing I see that OpenSLP is not replying to service attribute requests. From the code it seems to me that the OpenSLP does not respond to SLPv1 requests. Is this correct ? Is there a configuration or setting through which I can enable SLPv1 ? I was trying with OpenSLP version 1.2.1. Thanks for the help. --Ram ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Openslp-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openslp-users |
From: Nick W. <ne...@wi...> - 2011-09-12 14:49:25
|
>From what I can see, the default for the linux build is to enable SLPv1 support via the ENABLE_SLPv1 preprocessor definition. Is ENABLE_SLPv1 defined for your build? You said it doesn't respond to attribute requests. If you sniff it, do you see it responding to any v1 requests? What version are you using? --Nick On Mon, Sep 12, 2011 at 4:40 AM, Ramakrishnan s <ram...@ho...>wrote: > Hi, > > > > I am trying integrate OpenSLP inside my printer FW. Printer FW is running > on Linux (2.6.32 Kernel). We have a host software that is trying to discover > printers using SLPv1. During my testing I see that OpenSLP is not replying > to service attribute requests. From the code it seems to me that the OpenSLP > does not respond to SLPv1 requests. Is this correct ? Is there a > configuration or setting through which I can enable SLPv1 ? I was trying > with OpenSLP version 1.2.1. > > > > Thanks for the help. > > > > --Ram > > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users > > |
From: Ramakrishnan s <ram...@ho...> - 2011-09-12 09:40:59
|
Hi, I am trying integrate OpenSLP inside my printer FW. Printer FW is running on Linux (2.6.32 Kernel). We have a host software that is trying to discover printers using SLPv1. During my testing I see that OpenSLP is not replying to service attribute requests. From the code it seems to me that the OpenSLP does not respond to SLPv1 requests. Is this correct ? Is there a configuration or setting through which I can enable SLPv1 ? I was trying with OpenSLP version 1.2.1. Thanks for the help. --Ram |
From: Robert H. <rh...@hs...> - 2011-08-09 16:04:35
|
Hi Matt, Thanks for your answer! I can see your point; it affects a problem I had some days ago: The problem of choosing the appropriate local IP address to publish (provided no hostnames should be used). I decided to solve this problem at application level. Every SA publishes its service several times, once for every local IP address (my software keeps track of its service registrations and periodcally checks if there are new local addresses to publish or if a service needs to be deregistered). The UA then checks which of the published endpoints are actually reachable. By using a unique identifier for every SA as URLpath I make sure that every SA is presented to the user only once, even if several endpoints were reachable. I'v already implemented this solution on both the SA and UA side and it would work perfectly fine if only slpd rechecked the available interfaces from time to time. Your workaround with the reg file is not an option for me since it would require some manual configuration on every node. Best regards Robert Am 09.08.2011 17:10, schrieb Matthew Pendlebury: > Robert, > > I believe your understanding of the workings of slpd is correct, namely it scans exactly once at startup. I've recently investigated just this behaviour because this sort of functionality would be useful to us too. > > There may be slightly more complexity to the issue than just polling interfaces for new/changed addresses that SLP should listen on. In that the advertisements that SLP makes embed details of how to contact the service in the returned service URL. Your advertised service then has a requirement to ensure that it too is available via the new address and is resolvable. > > A partial workaround if your service registrations are long lived might be to put your registrations in a static reg file and have slpd be restarted periodically (to rescan the interfaces). It's really not great but might achieve what you want to do in the short term. > > Cheers > > --Matt > > > > > > -----Original Message----- > From: Robert Hegner [mailto:rh...@hs...] > Sent: 09 August 2011 07:57 > To: ope...@li... > Subject: [Openslp-users] Force slpd to periodically rescan interfaces > > slpd seems to scan the available network interfaces only once at > startup. So service discovery does not work in situations like the > following: > > - The SA has not yet received its IP address from a DHCP server when > slpd is starting. > > - The user powers up the SA before connecting it to the network. > > - The user decides to plug in the network cable to another port when the > SA is already running. > > So my question is: Is it possible to force slpd to periodically rescan > the available network interfaces and connect to them? > > I think this feature is necessary to give the user a real plug'n'play > (or plug and discover...) feeling. My goal is still to avoid any manual > configuration on the SAs (like setting fixed IP addresses in some > configuration file). It should be possible for the user to just attach a > new node (SA) to the power and to the network (in any order...). The > node should then get its IP address from a DHCP server and publish its > service via SLP. > > Best regards > Robert > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users > > Consider the environment before printing this mail. > > Thales e-Security Limited is incorporated in England and Wales with company registration number 2518805. Its registered office is located at 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Nr. Weybridge, Surrey KT15 2NX. > > The information contained in this e-mail is confidential. It may also be privileged. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee or the intended addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. If you have received this e-mail in error, please inform us immediately on +44 (0)1223 723600 and delete it and all copies from your system. Commercial matters detailed or referred to in this e-mail are subject to a written contract signed for and on behalf of Thales e-Security Limited. > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev |
From: Matthew P. <Mat...@th...> - 2011-08-09 15:27:01
|
Robert, I believe your understanding of the workings of slpd is correct, namely it scans exactly once at startup. I've recently investigated just this behaviour because this sort of functionality would be useful to us too. There may be slightly more complexity to the issue than just polling interfaces for new/changed addresses that SLP should listen on. In that the advertisements that SLP makes embed details of how to contact the service in the returned service URL. Your advertised service then has a requirement to ensure that it too is available via the new address and is resolvable. A partial workaround if your service registrations are long lived might be to put your registrations in a static reg file and have slpd be restarted periodically (to rescan the interfaces). It's really not great but might achieve what you want to do in the short term. Cheers --Matt -----Original Message----- From: Robert Hegner [mailto:rh...@hs...] Sent: 09 August 2011 07:57 To: ope...@li... Subject: [Openslp-users] Force slpd to periodically rescan interfaces slpd seems to scan the available network interfaces only once at startup. So service discovery does not work in situations like the following: - The SA has not yet received its IP address from a DHCP server when slpd is starting. - The user powers up the SA before connecting it to the network. - The user decides to plug in the network cable to another port when the SA is already running. So my question is: Is it possible to force slpd to periodically rescan the available network interfaces and connect to them? I think this feature is necessary to give the user a real plug'n'play (or plug and discover...) feeling. My goal is still to avoid any manual configuration on the SAs (like setting fixed IP addresses in some configuration file). It should be possible for the user to just attach a new node (SA) to the power and to the network (in any order...). The node should then get its IP address from a DHCP server and publish its service via SLP. Best regards Robert ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Openslp-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openslp-users Consider the environment before printing this mail. Thales e-Security Limited is incorporated in England and Wales with company registration number 2518805. Its registered office is located at 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Nr. Weybridge, Surrey KT15 2NX. The information contained in this e-mail is confidential. It may also be privileged. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee or the intended addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. If you have received this e-mail in error, please inform us immediately on +44 (0)1223 723600 and delete it and all copies from your system. Commercial matters detailed or referred to in this e-mail are subject to a written contract signed for and on behalf of Thales e-Security Limited. |
From: Robert H. <rh...@hs...> - 2011-08-09 06:57:56
|
slpd seems to scan the available network interfaces only once at startup. So service discovery does not work in situations like the following: - The SA has not yet received its IP address from a DHCP server when slpd is starting. - The user powers up the SA before connecting it to the network. - The user decides to plug in the network cable to another port when the SA is already running. So my question is: Is it possible to force slpd to periodically rescan the available network interfaces and connect to them? I think this feature is necessary to give the user a real plug'n'play (or plug and discover...) feeling. My goal is still to avoid any manual configuration on the SAs (like setting fixed IP addresses in some configuration file). It should be possible for the user to just attach a new node (SA) to the power and to the network (in any order...). The node should then get its IP address from a DHCP server and publish its service via SLP. Best regards Robert |
From: Robert H. <rh...@hs...> - 2011-08-05 10:58:33
|
Hi Matt Currently we're using Windows. C++ on the nodes and C# for discovering the nodes. On the node side it should be as portable as possible so that we can switch to Linux later. Basically we want to have as few restrictions/constraints for the network environment as possible. The only thing that needs to be there should be a DHCP server. Is it essential to have a DNS in the network in order to perform hostname resolution? Isn't there some mechanism which uses broadcasts the find a given hostname (if there is no DNS available?). Or in other words: What are the minimum requirements for a network infrastructure so that hostname resolution can be performed, and which works for both Windows and Linux? You notice that I'm (unfortunately) not a networking specialist... So any help is much appreciated! Robert Am 05.08.2011 11:50, schrieb Hird Matthew: > Robert > > What platform are you using? Windows/Linux? What programming language are > you using? > > I would use IP addresses, not hostnames. If you use hostnames and somebody > plugs a board into your network, how will the rest of your network be able > to resolve the new hostname? Are you using some form of dynamic DNS? If you > use an IP address, there is nothing to resolve as long as your new node has > it's NIC(s) setup to 'play nice' with your network. > > Cheers > Matt > > > -----Original Message----- > From: Robert Hegner [mailto:rh...@hs...] > Sent: 04 August 2011 14:13 > To: ope...@li... > Subject: Re: [Openslp-users] How to register a service with the local IP > address? > > Thanks for your answer! > > Before I write about what I came up with, here some background about my > project: The goal is that the user can attach a node (an embedded computer > which provides some service) to the network, and it should show up in some > GUI application without the need to configure anything. So manually setting > the IP address which should be published on every node separately is not an > option. > > So here's my idea (the best so far...): > I use boost.asio to get all local IP addresses, using the approach described > here: > http://hi.baidu.com/xshl5/blog/item/bebd0ee9df347f3ab80e2d8c.html > > This is still ugly because it needs to be able to resolve the hostname, but > at least it should be portable. > > Now on my developer machine (with two network cards), I can find three > IPv6 and two IPv4 addresses. So, as you wrote, the problem is to decide > which address to use. > > I decided to register my service several times, with all available IP > addresses. As URL-path I use an id which uniquely identifies a node. So the > GUI will find several services with the same id and it can use ping to > choose (the) one it can actually reach. > > This is not nice, but it's a beginning... > > But maybe I should really consider working with hostnames instead of IP > addresses anyway. Then I would need to register the service only once (with > one hostname instead of several IPs). I'll have to think about the > consequences of this desicion for the rest of my project... > > With the above mentioned solution for finding my local IP addresses I need > to make sure that every node has its own unique and valid hostname anyway. > Maybe my nodes can give themselves an arbitrary, but globally unique ID > (GUID) as a hostname when they boot for the first time? Then there is no > need for the user to configure anything. > > Robert > > > Am 04.08.2011 14:05, schrieb Philipp Schafft: > >> reflum, >> >> On Thu, 2011-08-04 at 09:29 +0200, Robert Hegner wrote: >>> Using SLPReg I'd like to register >>> >>> service:TrackingNode.CP://192.168.0.100:1234 >>> >>> where the IP address should actually be the the local IP address of >>> my NIC. This sounds to me like a common problem when using SLP, but I >>> haven't found a solution yet. >>> >>> The problem is that I haven't found a nice and portable way to >>> discover the local IP address (using gethostname and gethostbyname is >>> ugly and Windows specific, for example). >>> >>> What is the common practice to register a service using the current >>> IP address? >> >> This is a non-easy problem and I don't have a good solution for you. >> >> Yet there are some points you should consider: >> A lot systems (even my laptop) has multiple externel addresses plus >> loopback address. In addition there is no 'eth0' so requesting the >> address of hardcoded 'eth0' will fail on some systems (eth0 broke and >> I replaced the card. As it is a new card it got a new name.) >> >> looking up hostname (both gethostname() and uname()) works for me but >> often people have use strange hostnames ('localhost'...) or hostnames >> can not be resolved. >> >> There can also be some kind of address translation in between >> (NAT,...) which requires you to publish a IP address not your real one. >> >> I think a good application should allow the user to give the address >> in some kind of configuration file, dialog,... >> >> I also think that plublishing hostnames (not IP addresses) solves some >> (most) of the abo´ve problems. This should be prefered. >> >> >> If you find a good solution please tell me. ;) >> >> >> >> >> >> ---------------------------------------------------------------------- >> -------- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, >> CA The must-attend event for mobile developers. Connect with experts. >> Get tools for creating Super Apps. See the latest technologies. >> Sessions, hands-on labs, demos& much more. Register early& save! >> http://p.sf.net/sfu/rim-blackberry-1 >> >> >> >> _______________________________________________ >> Openslp-users mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openslp-users > > > > ---------------------------------------------------------------------------- > -- > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The > must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos& much more. Register early& save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users > > 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. > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos& much more. Register early& save! > http://p.sf.net/sfu/rim-blackberry-1 |
From: Hird M. <Mat...@uk...> - 2011-08-05 09:50:58
|
Robert What platform are you using? Windows/Linux? What programming language are you using? I would use IP addresses, not hostnames. If you use hostnames and somebody plugs a board into your network, how will the rest of your network be able to resolve the new hostname? Are you using some form of dynamic DNS? If you use an IP address, there is nothing to resolve as long as your new node has it's NIC(s) setup to 'play nice' with your network. Cheers Matt -----Original Message----- From: Robert Hegner [mailto:rh...@hs...] Sent: 04 August 2011 14:13 To: ope...@li... Subject: Re: [Openslp-users] How to register a service with the local IP address? Thanks for your answer! Before I write about what I came up with, here some background about my project: The goal is that the user can attach a node (an embedded computer which provides some service) to the network, and it should show up in some GUI application without the need to configure anything. So manually setting the IP address which should be published on every node separately is not an option. So here's my idea (the best so far...): I use boost.asio to get all local IP addresses, using the approach described here: http://hi.baidu.com/xshl5/blog/item/bebd0ee9df347f3ab80e2d8c.html This is still ugly because it needs to be able to resolve the hostname, but at least it should be portable. Now on my developer machine (with two network cards), I can find three IPv6 and two IPv4 addresses. So, as you wrote, the problem is to decide which address to use. I decided to register my service several times, with all available IP addresses. As URL-path I use an id which uniquely identifies a node. So the GUI will find several services with the same id and it can use ping to choose (the) one it can actually reach. This is not nice, but it's a beginning... But maybe I should really consider working with hostnames instead of IP addresses anyway. Then I would need to register the service only once (with one hostname instead of several IPs). I'll have to think about the consequences of this desicion for the rest of my project... With the above mentioned solution for finding my local IP addresses I need to make sure that every node has its own unique and valid hostname anyway. Maybe my nodes can give themselves an arbitrary, but globally unique ID (GUID) as a hostname when they boot for the first time? Then there is no need for the user to configure anything. Robert Am 04.08.2011 14:05, schrieb Philipp Schafft: > reflum, > > On Thu, 2011-08-04 at 09:29 +0200, Robert Hegner wrote: >> Using SLPReg I'd like to register >> >> service:TrackingNode.CP://192.168.0.100:1234 >> >> where the IP address should actually be the the local IP address of >> my NIC. This sounds to me like a common problem when using SLP, but I >> haven't found a solution yet. >> >> The problem is that I haven't found a nice and portable way to >> discover the local IP address (using gethostname and gethostbyname is >> ugly and Windows specific, for example). >> >> What is the common practice to register a service using the current >> IP address? > > This is a non-easy problem and I don't have a good solution for you. > > Yet there are some points you should consider: > A lot systems (even my laptop) has multiple externel addresses plus > loopback address. In addition there is no 'eth0' so requesting the > address of hardcoded 'eth0' will fail on some systems (eth0 broke and > I replaced the card. As it is a new card it got a new name.) > > looking up hostname (both gethostname() and uname()) works for me but > often people have use strange hostnames ('localhost'...) or hostnames > can not be resolved. > > There can also be some kind of address translation in between > (NAT,...) which requires you to publish a IP address not your real one. > > I think a good application should allow the user to give the address > in some kind of configuration file, dialog,... > > I also think that plublishing hostnames (not IP addresses) solves some > (most) of the abo´ve problems. This should be prefered. > > > If you find a good solution please tell me. ;) > > > > > > ---------------------------------------------------------------------- > -------- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, > CA The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos& much more. Register early& save! > http://p.sf.net/sfu/rim-blackberry-1 > > > > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users ---------------------------------------------------------------------------- -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Openslp-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openslp-users 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. |
From: Robert H. <rh...@hs...> - 2011-08-04 13:13:14
|
Thanks for your answer! Before I write about what I came up with, here some background about my project: The goal is that the user can attach a node (an embedded computer which provides some service) to the network, and it should show up in some GUI application without the need to configure anything. So manually setting the IP address which should be published on every node separately is not an option. So here's my idea (the best so far...): I use boost.asio to get all local IP addresses, using the approach described here: http://hi.baidu.com/xshl5/blog/item/bebd0ee9df347f3ab80e2d8c.html This is still ugly because it needs to be able to resolve the hostname, but at least it should be portable. Now on my developer machine (with two network cards), I can find three IPv6 and two IPv4 addresses. So, as you wrote, the problem is to decide which address to use. I decided to register my service several times, with all available IP addresses. As URL-path I use an id which uniquely identifies a node. So the GUI will find several services with the same id and it can use ping to choose (the) one it can actually reach. This is not nice, but it's a beginning... But maybe I should really consider working with hostnames instead of IP addresses anyway. Then I would need to register the service only once (with one hostname instead of several IPs). I'll have to think about the consequences of this desicion for the rest of my project... With the above mentioned solution for finding my local IP addresses I need to make sure that every node has its own unique and valid hostname anyway. Maybe my nodes can give themselves an arbitrary, but globally unique ID (GUID) as a hostname when they boot for the first time? Then there is no need for the user to configure anything. Robert Am 04.08.2011 14:05, schrieb Philipp Schafft: > reflum, > > On Thu, 2011-08-04 at 09:29 +0200, Robert Hegner wrote: >> Using SLPReg I'd like to register >> >> service:TrackingNode.CP://192.168.0.100:1234 >> >> where the IP address should actually be the the local IP address of my >> NIC. This sounds to me like a common problem when using SLP, but I >> haven't found a solution yet. >> >> The problem is that I haven't found a nice and portable way to discover >> the local IP address (using gethostname and gethostbyname is ugly and >> Windows specific, for example). >> >> What is the common practice to register a service using the current IP >> address? > > This is a non-easy problem and I don't have a good solution for you. > > Yet there are some points you should consider: > A lot systems (even my laptop) has multiple externel addresses plus > loopback address. In addition there is no 'eth0' so requesting the > address of hardcoded 'eth0' will fail on some systems (eth0 broke and I > replaced the card. As it is a new card it got a new name.) > > looking up hostname (both gethostname() and uname()) works for me but > often people have use strange hostnames ('localhost'...) or hostnames > can not be resolved. > > There can also be some kind of address translation in between (NAT,...) > which requires you to publish a IP address not your real one. > > I think a good application should allow the user to give the address in > some kind of configuration file, dialog,... > > I also think that plublishing hostnames (not IP addresses) solves some > (most) of the abo´ve problems. This should be prefered. > > > If you find a good solution please tell me. ;) > > > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos& much more. Register early& save! > http://p.sf.net/sfu/rim-blackberry-1 > > > > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users |
From: Philipp S. <li...@li...> - 2011-08-04 12:05:36
|
reflum, On Thu, 2011-08-04 at 09:29 +0200, Robert Hegner wrote: > Using SLPReg I'd like to register > > service:TrackingNode.CP://192.168.0.100:1234 > > where the IP address should actually be the the local IP address of my > NIC. This sounds to me like a common problem when using SLP, but I > haven't found a solution yet. > > The problem is that I haven't found a nice and portable way to discover > the local IP address (using gethostname and gethostbyname is ugly and > Windows specific, for example). > > What is the common practice to register a service using the current IP > address? This is a non-easy problem and I don't have a good solution for you. Yet there are some points you should consider: A lot systems (even my laptop) has multiple externel addresses plus loopback address. In addition there is no 'eth0' so requesting the address of hardcoded 'eth0' will fail on some systems (eth0 broke and I replaced the card. As it is a new card it got a new name.) looking up hostname (both gethostname() and uname()) works for me but often people have use strange hostnames ('localhost'...) or hostnames can not be resolved. There can also be some kind of address translation in between (NAT,...) which requires you to publish a IP address not your real one. I think a good application should allow the user to give the address in some kind of configuration file, dialog,... I also think that plublishing hostnames (not IP addresses) solves some (most) of the abo´ve problems. This should be prefered. If you find a good solution please tell me. ;) -- Philipp. (Rah of PH2) |
From: Robert H. <rh...@hs...> - 2011-08-04 07:29:42
|
Using SLPReg I'd like to register service:TrackingNode.CP://192.168.0.100:1234 where the IP address should actually be the the local IP address of my NIC. This sounds to me like a common problem when using SLP, but I haven't found a solution yet. The problem is that I haven't found a nice and portable way to discover the local IP address (using gethostname and gethostbyname is ugly and Windows specific, for example). What is the common practice to register a service using the current IP address? Best regards Robert |
From: Roel v. de K. <rk...@dd...> - 2011-08-01 19:24:51
|
On 08/01/2011 01:06 AM, Nick Wagner wrote: > It's fine with me. If we want to avoid slp.conf confusion, we could > add add a comment to that line in the slp.conf that states it is > ignored by slptool. Good idea. See http://openslp.svn.sourceforge.net/viewvc/openslp?view=revision&revision=1684 BR, Roel > > On Sun, Jul 31, 2011 at 2:59 PM, Roel van de Kraats <rk...@dd... > <mailto:rk...@dd...>> wrote: > > Dear devels, > > Does anyone have any objection to the patch below which disables the > 'PID watcher' functionality for services registered with slptool? > In my > opinion, the slptool register function is quite useless without this, > since any registration will automatically be unregistered after a few > seconds. On the other hand, with this patch slptool doesn't conform to > the properties set in the configuration file anymore, which may be > confusing, and which is why I'd like to hear your opinion on this. > > BR, > Roel > > > Index: slptool/slptool.c > =================================================================== > --- slptool/slptool.c (revision 1682) > +++ slptool/slptool.c (working copy) > @@ -279,6 +279,9 @@ > strncpy(srvtype, cmdline->cmdparam1, len); > srvtype[len] = 0; > > + /* Clear property (if set), otherwise the register function is > quite useless */ > + SLPSetProperty("net.slp.watchRegistrationPID", 0); > + > if (SLPOpen(cmdline->lang, SLP_FALSE,&hslp) == SLP_OK) > { > if (!lt || lt> SLP_LIFETIME_MAXIMUM) > > > > > On 07/28/2011 04:01 PM, Robert Hegner wrote: > > Wow, that was it!!! Thanks a lot Roel! > > > > This should be mentioned in big red letters in the documentation > and in > > the usage description of slptool. It would have saved me two or more > > days of debugging! But this setting is not even described in the > > slp.conf File description in the Users Guide. > > > > When you just start slptool and see all the examples there it > looks like > > you can just play around with registering and finding services... > > > > Now it works in my switched private network but also in the company > > network with two Win7 x64 machines :) > > > > Thanks again > > Robert. > > > > Am 28.07.2011 15:41, schrieb Roel van de Kraats: > >> > >> On 07/28/2011 03:22 PM, Robert Hegner wrote: > >>> I did some more tests with slptool. And it looks like it is not a > >>> problem of my network environment, because under some > conditions I can > >>> get it to work. But I still don't really understand what's > going on. I > >>> hope someone can explain... > >>> > >>> For the following tests I will again use two WinXP boxes in my > private > >>> network (with just an unmanaged switch) with OpenSLP 2.0.0 Beta 2. > >>> > >>> When I use empty slp.conf and slp.reg files on both machines, > it doesn't > >>> work. So > >>> slptool register service:myserv.x://myhost.com <http://myhost.com> > >>> on one machine and > >>> slptool findsrvs service:myserv.x > >>> on the same or on another machine doesn't give any results. > >> Hi Robert, > >> > >> With the default settings, a registration will automatically be > removed > >> a few seconds after the process disappeared that made the > registration. > >> This is to prevent keeping 'dangling' registrations from > processes that > >> didn't properly deregister. > >> > >> In case you use 'slptool register' the process making the > registration > >> is 'slptool', which immediately exits. The registration is > therefore > >> automatically removed a few seconds afterwards. > >> > >> Try using a configuration file with > 'net.slp.watchRegistrationPID = false'. > >> > >> BR, > >> Roel > >>> But when I statically add > >>> service:myserv2.x://myhost2.com <http://myhost2.com>,en,65535 > >>> to slp.reg on one machine and restart the slpd daemon, I can > always find > >>> this service from both machines! > >>> > >>> From now on, when I add additional services dynamically, I can > >>> sometimes find the dynamically added service (I have to > register it > >>> several times, and then sometimes it can be found, maybe once > or so). > >>> > >>> Right now for me it looks like its more a problem of OpenSLP... > >>> > >>> Any ideas? > >>> > >>> Robert. > >>> > >>> > >>> Am 27.07.2011 20 <tel:27.07.2011%2020>:50, schrieb Nick Wagner: > >>>> My experience with unmanaged switches is quite different -- > multicasts > >>>> are just sent to everyone, rather than being dropped. Have > you tried > >>>> sniffing to make sure the multicast gets to the other side, > or that the > >>>> windows firewall isn't excluding the packets? > >>>> > >>>> But, to answer your other question, I think slp.conf's > >>>> net.slp.useBroadcast variable is supposed to affect the UA > functionality > >>>> as well as SA/DA functionality. > >>>> > >>>> --Nick > >>>> > >>>> On Wed, Jul 27, 2011 at 10:37 AM, Robert Hegner > >>>> <rh...@hs... <mailto:rh...@hs...> > >>>> <mailto:rh...@hs... <mailto:rh...@hs...>>> wrote: > >>>> > >>>> Hi all, > >>>> > >>>> I'm new to SLP and I'm also not really a network > specialist... > >>>> > >>>> What I want to do right now is just a little test > using slptool with two > >>>> computers, one acting as a SA, the other acting as a UA. > >>>> > >>>> I tried this in my company network but I couldn't get > it running. So I > >>>> thought it might be easier to start in my own little > private network > >>>> first. Now the thing is that there is just an > (unmanaged) switch in that > >>>> network, so multicasts are not supported. > >>>> > >>>> Is it true that SLP can also use broadcasts, if > multicasts are not > >>>> allowed? I found that on the SA side I can force slpd > to use broadcasts. > >>>> But how can I make sure that findsrvs also uses > broadcasts to find > >>>> the SA? > >>>> > >>>> In my little private network I'm using OpenSLP 2.0.0 > Beta 2 on WinXP > >>>> boxes. > >>>> > >>>> Any help or information would be highly appreciated! > >>>> > >>>> Thanks, > >>>> Robert. > >>>> > >>>> PS: I posted a similar question on serverfault, but it > looks like not > >>>> much SLP relation discussion is going on over there. > >>>> > http://serverfault.com/questions/294569/using-slp-service-location-protocol-in-an-environment-without-multicast-opensl > >>>> > >>>> > |
From: John C. <joh...@gm...> - 2011-08-01 04:32:53
|
Roel, Wow, I can't believe we've let this one go unnoticed for such a long time. Of course we should disable pid-watcher for slptool registrations. John -----Original Message----- From: Roel van de Kraats [mailto:rk...@dd...] Sent: Sunday, July 31, 2011 1:59 PM To: 'ope...@li...' Cc: ope...@li...; Robert Hegner Subject: Re: [Openslp-devel] [Openslp-users] Using SLP in an environment without multicast? Dear devels, Does anyone have any objection to the patch below which disables the 'PID watcher' functionality for services registered with slptool? In my opinion, the slptool register function is quite useless without this, since any registration will automatically be unregistered after a few seconds. On the other hand, with this patch slptool doesn't conform to the properties set in the configuration file anymore, which may be confusing, and which is why I'd like to hear your opinion on this. BR, Roel Index: slptool/slptool.c =================================================================== --- slptool/slptool.c (revision 1682) +++ slptool/slptool.c (working copy) @@ -279,6 +279,9 @@ strncpy(srvtype, cmdline->cmdparam1, len); srvtype[len] = 0; + /* Clear property (if set), otherwise the register function is quite useless */ + SLPSetProperty("net.slp.watchRegistrationPID", 0); + if (SLPOpen(cmdline->lang, SLP_FALSE,&hslp) == SLP_OK) { if (!lt || lt> SLP_LIFETIME_MAXIMUM) On 07/28/2011 04:01 PM, Robert Hegner wrote: > Wow, that was it!!! Thanks a lot Roel! > > This should be mentioned in big red letters in the documentation and > in the usage description of slptool. It would have saved me two or > more days of debugging! But this setting is not even described in the > slp.conf File description in the Users Guide. > > When you just start slptool and see all the examples there it looks > like you can just play around with registering and finding services... > > Now it works in my switched private network but also in the company > network with two Win7 x64 machines :) > > Thanks again > Robert. > > Am 28.07.2011 15:41, schrieb Roel van de Kraats: >> >> On 07/28/2011 03:22 PM, Robert Hegner wrote: >>> I did some more tests with slptool. And it looks like it is not a >>> problem of my network environment, because under some conditions I >>> can get it to work. But I still don't really understand what's going >>> on. I hope someone can explain... >>> >>> For the following tests I will again use two WinXP boxes in my >>> private network (with just an unmanaged switch) with OpenSLP 2.0.0 Beta 2. >>> >>> When I use empty slp.conf and slp.reg files on both machines, it >>> doesn't work. So slptool register service:myserv.x://myhost.com on >>> one machine and slptool findsrvs service:myserv.x on the same or on >>> another machine doesn't give any results. >> Hi Robert, >> >> With the default settings, a registration will automatically be >> removed a few seconds after the process disappeared that made the registration. >> This is to prevent keeping 'dangling' registrations from processes >> that didn't properly deregister. >> >> In case you use 'slptool register' the process making the >> registration is 'slptool', which immediately exits. The registration >> is therefore automatically removed a few seconds afterwards. >> >> Try using a configuration file with 'net.slp.watchRegistrationPID = false'. >> >> BR, >> Roel >>> But when I statically add >>> service:myserv2.x://myhost2.com,en,65535 >>> to slp.reg on one machine and restart the slpd daemon, I can always >>> find this service from both machines! >>> >>> From now on, when I add additional services dynamically, I can >>> sometimes find the dynamically added service (I have to register it >>> several times, and then sometimes it can be found, maybe once or so). >>> >>> Right now for me it looks like its more a problem of OpenSLP... >>> >>> Any ideas? >>> >>> Robert. >>> >>> >>> Am 27.07.2011 20:50, schrieb Nick Wagner: >>>> My experience with unmanaged switches is quite different -- >>>> multicasts are just sent to everyone, rather than being dropped. >>>> Have you tried sniffing to make sure the multicast gets to the >>>> other side, or that the windows firewall isn't excluding the packets? >>>> >>>> But, to answer your other question, I think slp.conf's >>>> net.slp.useBroadcast variable is supposed to affect the UA >>>> functionality as well as SA/DA functionality. >>>> >>>> --Nick >>>> >>>> On Wed, Jul 27, 2011 at 10:37 AM, Robert Hegner <rh...@hs... >>>> <mailto:rh...@hs...>> wrote: >>>> >>>> Hi all, >>>> >>>> I'm new to SLP and I'm also not really a network specialist... >>>> >>>> What I want to do right now is just a little test using slptool with two >>>> computers, one acting as a SA, the other acting as a UA. >>>> >>>> I tried this in my company network but I couldn't get it running. So I >>>> thought it might be easier to start in my own little private network >>>> first. Now the thing is that there is just an (unmanaged) switch in that >>>> network, so multicasts are not supported. >>>> >>>> Is it true that SLP can also use broadcasts, if multicasts are not >>>> allowed? I found that on the SA side I can force slpd to use broadcasts. >>>> But how can I make sure that findsrvs also uses broadcasts to find >>>> the SA? >>>> >>>> In my little private network I'm using OpenSLP 2.0.0 Beta 2 on WinXP >>>> boxes. >>>> >>>> Any help or information would be highly appreciated! >>>> >>>> Thanks, >>>> Robert. >>>> >>>> PS: I posted a similar question on serverfault, but it looks like not >>>> much SLP relation discussion is going on over there. >>>> >>>> http://serverfault.com/questions/294569/using-slp-service-location- >>>> protocol-in-an-environment-without-multicast-opensl >>>> >>>> >>>> ---------------------------------------------------------------------------- -- >>>> Got Input? Slashdot Needs You. >>>> Take our quick survey online. Come on, we don't ask for help often. >>>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>>> http://p.sf.net/sfu/slashdot-survey >>>> _______________________________________________ >>>> Openslp-users mailing list >>>> Ope...@li... >>>> <mailto:Ope...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/openslp-users >>>> >>>> >>>> >>>> >>>> ---------------------------------------------------------------------------- -- >>>> Got Input? Slashdot Needs You. >>>> Take our quick survey online. Come on, we don't ask for help often. >>>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>>> http://p.sf.net/sfu/slashdot-survey >>>> >>>> >>>> >>>> _______________________________________________ >>>> Openslp-users mailing list >>>> Ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/openslp-users >>> >>> ---------------------------------------------------------------------------- -- >>> Got Input? Slashdot Needs You. >>> Take our quick survey online. Come on, we don't ask for help often. >>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>> http://p.sf.net/sfu/slashdot-survey >>> _______________________________________________ >>> Openslp-users mailing list >>> Ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/openslp-users >> >> ---------------------------------------------------------------------------- -- >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey > > > ---------------------------------------------------------------------------- -- > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users ---------------------------------------------------------------------------- -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Openslp-devel mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openslp-devel |
From: Nick W. <ne...@wi...> - 2011-07-31 23:06:38
|
It's fine with me. If we want to avoid slp.conf confusion, we could add add a comment to that line in the slp.conf that states it is ignored by slptool. On Sun, Jul 31, 2011 at 2:59 PM, Roel van de Kraats <rk...@dd...> wrote: > Dear devels, > > Does anyone have any objection to the patch below which disables the > 'PID watcher' functionality for services registered with slptool? In my > opinion, the slptool register function is quite useless without this, > since any registration will automatically be unregistered after a few > seconds. On the other hand, with this patch slptool doesn't conform to > the properties set in the configuration file anymore, which may be > confusing, and which is why I'd like to hear your opinion on this. > > BR, > Roel > > > Index: slptool/slptool.c > =================================================================== > --- slptool/slptool.c (revision 1682) > +++ slptool/slptool.c (working copy) > @@ -279,6 +279,9 @@ > strncpy(srvtype, cmdline->cmdparam1, len); > srvtype[len] = 0; > > + /* Clear property (if set), otherwise the register function is quite > useless */ > + SLPSetProperty("net.slp.watchRegistrationPID", 0); > + > if (SLPOpen(cmdline->lang, SLP_FALSE,&hslp) == SLP_OK) > { > if (!lt || lt> SLP_LIFETIME_MAXIMUM) > > > > > On 07/28/2011 04:01 PM, Robert Hegner wrote: > > Wow, that was it!!! Thanks a lot Roel! > > > > This should be mentioned in big red letters in the documentation and in > > the usage description of slptool. It would have saved me two or more > > days of debugging! But this setting is not even described in the > > slp.conf File description in the Users Guide. > > > > When you just start slptool and see all the examples there it looks like > > you can just play around with registering and finding services... > > > > Now it works in my switched private network but also in the company > > network with two Win7 x64 machines :) > > > > Thanks again > > Robert. > > > > Am 28.07.2011 15:41, schrieb Roel van de Kraats: > >> > >> On 07/28/2011 03:22 PM, Robert Hegner wrote: > >>> I did some more tests with slptool. And it looks like it is not a > >>> problem of my network environment, because under some conditions I can > >>> get it to work. But I still don't really understand what's going on. I > >>> hope someone can explain... > >>> > >>> For the following tests I will again use two WinXP boxes in my private > >>> network (with just an unmanaged switch) with OpenSLP 2.0.0 Beta 2. > >>> > >>> When I use empty slp.conf and slp.reg files on both machines, it > doesn't > >>> work. So > >>> slptool register service:myserv.x://myhost.com > >>> on one machine and > >>> slptool findsrvs service:myserv.x > >>> on the same or on another machine doesn't give any results. > >> Hi Robert, > >> > >> With the default settings, a registration will automatically be removed > >> a few seconds after the process disappeared that made the registration. > >> This is to prevent keeping 'dangling' registrations from processes that > >> didn't properly deregister. > >> > >> In case you use 'slptool register' the process making the registration > >> is 'slptool', which immediately exits. The registration is therefore > >> automatically removed a few seconds afterwards. > >> > >> Try using a configuration file with 'net.slp.watchRegistrationPID = > false'. > >> > >> BR, > >> Roel > >>> But when I statically add > >>> service:myserv2.x://myhost2.com,en,65535 > >>> to slp.reg on one machine and restart the slpd daemon, I can always > find > >>> this service from both machines! > >>> > >>> From now on, when I add additional services dynamically, I can > >>> sometimes find the dynamically added service (I have to register it > >>> several times, and then sometimes it can be found, maybe once or so). > >>> > >>> Right now for me it looks like its more a problem of OpenSLP... > >>> > >>> Any ideas? > >>> > >>> Robert. > >>> > >>> > >>> Am 27.07.2011 20:50, schrieb Nick Wagner: > >>>> My experience with unmanaged switches is quite different -- multicasts > >>>> are just sent to everyone, rather than being dropped. Have you tried > >>>> sniffing to make sure the multicast gets to the other side, or that > the > >>>> windows firewall isn't excluding the packets? > >>>> > >>>> But, to answer your other question, I think slp.conf's > >>>> net.slp.useBroadcast variable is supposed to affect the UA > functionality > >>>> as well as SA/DA functionality. > >>>> > >>>> --Nick > >>>> > >>>> On Wed, Jul 27, 2011 at 10:37 AM, Robert Hegner > >>>> <rh...@hs... > >>>> <mailto:rh...@hs...>> wrote: > >>>> > >>>> Hi all, > >>>> > >>>> I'm new to SLP and I'm also not really a network specialist... > >>>> > >>>> What I want to do right now is just a little test using slptool > with two > >>>> computers, one acting as a SA, the other acting as a UA. > >>>> > >>>> I tried this in my company network but I couldn't get it > running. So I > >>>> thought it might be easier to start in my own little private > network > >>>> first. Now the thing is that there is just an (unmanaged) > switch in that > >>>> network, so multicasts are not supported. > >>>> > >>>> Is it true that SLP can also use broadcasts, if multicasts are > not > >>>> allowed? I found that on the SA side I can force slpd to use > broadcasts. > >>>> But how can I make sure that findsrvs also uses broadcasts to > find > >>>> the SA? > >>>> > >>>> In my little private network I'm using OpenSLP 2.0.0 Beta 2 on > WinXP > >>>> boxes. > >>>> > >>>> Any help or information would be highly appreciated! > >>>> > >>>> Thanks, > >>>> Robert. > >>>> > >>>> PS: I posted a similar question on serverfault, but it looks > like not > >>>> much SLP relation discussion is going on over there. > >>>> > http://serverfault.com/questions/294569/using-slp-service-location-protocol-in-an-environment-without-multicast-opensl > >>>> > >>>> > >>>> > ------------------------------------------------------------------------------ > >>>> Got Input? Slashdot Needs You. > >>>> Take our quick survey online. Come on, we don't ask for help > often. > >>>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. > >>>> http://p.sf.net/sfu/slashdot-survey > >>>> _______________________________________________ > >>>> Openslp-users mailing list > >>>> Ope...@li... > >>>> <mailto:Ope...@li...> > >>>> https://lists.sourceforge.net/lists/listinfo/openslp-users > >>>> > >>>> > >>>> > >>>> > >>>> > ------------------------------------------------------------------------------ > >>>> Got Input? Slashdot Needs You. > >>>> Take our quick survey online. Come on, we don't ask for help often. > >>>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. > >>>> http://p.sf.net/sfu/slashdot-survey > >>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> Openslp-users mailing list > >>>> Ope...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/openslp-users > >>> > >>> > ------------------------------------------------------------------------------ > >>> Got Input? Slashdot Needs You. > >>> Take our quick survey online. Come on, we don't ask for help often. > >>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. > >>> http://p.sf.net/sfu/slashdot-survey > >>> _______________________________________________ > >>> Openslp-users mailing list > >>> Ope...@li... > >>> https://lists.sourceforge.net/lists/listinfo/openslp-users > >> > >> > ------------------------------------------------------------------------------ > >> Got Input? Slashdot Needs You. > >> Take our quick survey online. Come on, we don't ask for help often. > >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. > >> http://p.sf.net/sfu/slashdot-survey > > > > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Openslp-users mailing list > > Ope...@li... > > https://lists.sourceforge.net/lists/listinfo/openslp-users > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-devel > |
From: Roel v. de K. <rk...@dd...> - 2011-07-31 19:59:31
|
Dear devels, Does anyone have any objection to the patch below which disables the 'PID watcher' functionality for services registered with slptool? In my opinion, the slptool register function is quite useless without this, since any registration will automatically be unregistered after a few seconds. On the other hand, with this patch slptool doesn't conform to the properties set in the configuration file anymore, which may be confusing, and which is why I'd like to hear your opinion on this. BR, Roel Index: slptool/slptool.c =================================================================== --- slptool/slptool.c (revision 1682) +++ slptool/slptool.c (working copy) @@ -279,6 +279,9 @@ strncpy(srvtype, cmdline->cmdparam1, len); srvtype[len] = 0; + /* Clear property (if set), otherwise the register function is quite useless */ + SLPSetProperty("net.slp.watchRegistrationPID", 0); + if (SLPOpen(cmdline->lang, SLP_FALSE,&hslp) == SLP_OK) { if (!lt || lt> SLP_LIFETIME_MAXIMUM) On 07/28/2011 04:01 PM, Robert Hegner wrote: > Wow, that was it!!! Thanks a lot Roel! > > This should be mentioned in big red letters in the documentation and in > the usage description of slptool. It would have saved me two or more > days of debugging! But this setting is not even described in the > slp.conf File description in the Users Guide. > > When you just start slptool and see all the examples there it looks like > you can just play around with registering and finding services... > > Now it works in my switched private network but also in the company > network with two Win7 x64 machines :) > > Thanks again > Robert. > > Am 28.07.2011 15:41, schrieb Roel van de Kraats: >> >> On 07/28/2011 03:22 PM, Robert Hegner wrote: >>> I did some more tests with slptool. And it looks like it is not a >>> problem of my network environment, because under some conditions I can >>> get it to work. But I still don't really understand what's going on. I >>> hope someone can explain... >>> >>> For the following tests I will again use two WinXP boxes in my private >>> network (with just an unmanaged switch) with OpenSLP 2.0.0 Beta 2. >>> >>> When I use empty slp.conf and slp.reg files on both machines, it doesn't >>> work. So >>> slptool register service:myserv.x://myhost.com >>> on one machine and >>> slptool findsrvs service:myserv.x >>> on the same or on another machine doesn't give any results. >> Hi Robert, >> >> With the default settings, a registration will automatically be removed >> a few seconds after the process disappeared that made the registration. >> This is to prevent keeping 'dangling' registrations from processes that >> didn't properly deregister. >> >> In case you use 'slptool register' the process making the registration >> is 'slptool', which immediately exits. The registration is therefore >> automatically removed a few seconds afterwards. >> >> Try using a configuration file with 'net.slp.watchRegistrationPID = false'. >> >> BR, >> Roel >>> But when I statically add >>> service:myserv2.x://myhost2.com,en,65535 >>> to slp.reg on one machine and restart the slpd daemon, I can always find >>> this service from both machines! >>> >>> From now on, when I add additional services dynamically, I can >>> sometimes find the dynamically added service (I have to register it >>> several times, and then sometimes it can be found, maybe once or so). >>> >>> Right now for me it looks like its more a problem of OpenSLP... >>> >>> Any ideas? >>> >>> Robert. >>> >>> >>> Am 27.07.2011 20:50, schrieb Nick Wagner: >>>> My experience with unmanaged switches is quite different -- multicasts >>>> are just sent to everyone, rather than being dropped. Have you tried >>>> sniffing to make sure the multicast gets to the other side, or that the >>>> windows firewall isn't excluding the packets? >>>> >>>> But, to answer your other question, I think slp.conf's >>>> net.slp.useBroadcast variable is supposed to affect the UA functionality >>>> as well as SA/DA functionality. >>>> >>>> --Nick >>>> >>>> On Wed, Jul 27, 2011 at 10:37 AM, Robert Hegner >>>> <rh...@hs... >>>> <mailto:rh...@hs...>> wrote: >>>> >>>> Hi all, >>>> >>>> I'm new to SLP and I'm also not really a network specialist... >>>> >>>> What I want to do right now is just a little test using slptool with two >>>> computers, one acting as a SA, the other acting as a UA. >>>> >>>> I tried this in my company network but I couldn't get it running. So I >>>> thought it might be easier to start in my own little private network >>>> first. Now the thing is that there is just an (unmanaged) switch in that >>>> network, so multicasts are not supported. >>>> >>>> Is it true that SLP can also use broadcasts, if multicasts are not >>>> allowed? I found that on the SA side I can force slpd to use broadcasts. >>>> But how can I make sure that findsrvs also uses broadcasts to find >>>> the SA? >>>> >>>> In my little private network I'm using OpenSLP 2.0.0 Beta 2 on WinXP >>>> boxes. >>>> >>>> Any help or information would be highly appreciated! >>>> >>>> Thanks, >>>> Robert. >>>> >>>> PS: I posted a similar question on serverfault, but it looks like not >>>> much SLP relation discussion is going on over there. >>>> http://serverfault.com/questions/294569/using-slp-service-location-protocol-in-an-environment-without-multicast-opensl >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Got Input? Slashdot Needs You. >>>> Take our quick survey online. Come on, we don't ask for help often. >>>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>>> http://p.sf.net/sfu/slashdot-survey >>>> _______________________________________________ >>>> Openslp-users mailing list >>>> Ope...@li... >>>> <mailto:Ope...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/openslp-users >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Got Input? Slashdot Needs You. >>>> Take our quick survey online. Come on, we don't ask for help often. >>>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>>> http://p.sf.net/sfu/slashdot-survey >>>> >>>> >>>> >>>> _______________________________________________ >>>> Openslp-users mailing list >>>> Ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/openslp-users >>> >>> ------------------------------------------------------------------------------ >>> Got Input? Slashdot Needs You. >>> Take our quick survey online. Come on, we don't ask for help often. >>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>> http://p.sf.net/sfu/slashdot-survey >>> _______________________________________________ >>> Openslp-users mailing list >>> Ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/openslp-users >> >> ------------------------------------------------------------------------------ >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users |
From: Robert H. <rh...@hs...> - 2011-07-29 16:57:15
|
Now it worked :) Thanks a lot John! Am 29.07.2011 18:09, schrieb John Calcote: > Hi Robert, > > I played with it for a half hour. There were a few new warnings that came of > the upgrade to VS2010. I've fixed those warnings, and I've also added VS2010 > solution and project files. I committed these changes in revision 1683, so > if you checkout the openslp repository at that revision or later, you should > be able to open the openslp.vs2010.sln file and press F7. The original > openslp.sln file is still there for folks wanting to use the older VS2008. > The fixes I made to the source code for the missing symbols are backwards > compatible with the older compiler. > > --john > > -----Original Message----- > From: Robert Hegner [mailto:rh...@hs...] > Sent: Friday, July 29, 2011 2:38 AM > To: ope...@li... > Subject: Re: [Openslp-users] Static linking of slpstatic.lib > > Hi John, > Thank you for your help! > > I can compile my project now but it doesn't link because the prebuilt > libraries seem to use a different runtime library than my executable. > > So I tried to build OpenSLP with VS2010 by myself. > > However I get a lot of warnings (which are treated as errors) because some > constants (defines) of slp_socket.h are also defined in \Microsoft Visual > Studio 10.0\VC\include\errno.h (ETIMEDOUT, ENOTCONN, ...). > > Have you ever tried to build OpenSLP with VS2010? Do you know a workaround > for this problem? > > Thanks, > Robert. > > Am 28.07.2011 18:13, schrieb John Calcote: >> Hi Robert, >> >> You have to define LIBSLP_STATIC on the compiler command line when you >> link statically to libslp on Windows. This changes the function >> prototype in slp.h so that the linker looks for static symbols instead >> of dynamic imports (that start with __imp__). >> >> John >> >> -----Original Message----- >> From: Robert Hegner [mailto:rh...@hs...] >> Sent: Thursday, July 28, 2011 10:06 AM >> To: ope...@li... >> Subject: [Openslp-users] Static linking of slpstatic.lib >> >> The Windows installers of OpenSLP 2.0.0 Beta 2 contain libraries for >> dynamic and static linking. >> >> My application works fine with dynamic linking, but I'd like to link >> statically to slpstatic.lib. >> >> However, then I get the following linking errors (VC++ 2010): >> >> error LNK2019: unresolved external symbol __imp__SLPClose referenced >> in function _main error LNK2019: unresolved external symbol >> __imp__SLPReg referenced in function _main error LNK2019: unresolved >> external symbol __imp__SLPOpen referenced in function _main >> >> Why can't these functions be found? >> >> Robert. >> >> >> ---------------------------------------------------------------------- >> ------ >> -- >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> _______________________________________________ >> Openslp-users mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openslp-users >> >> >> > ---------------------------------------------------------------------------- > -- >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey > > > > ---------------------------------------------------------------------------- > -- > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey |
From: John C. <joh...@gm...> - 2011-07-29 16:09:15
|
Hi Robert, I played with it for a half hour. There were a few new warnings that came of the upgrade to VS2010. I've fixed those warnings, and I've also added VS2010 solution and project files. I committed these changes in revision 1683, so if you checkout the openslp repository at that revision or later, you should be able to open the openslp.vs2010.sln file and press F7. The original openslp.sln file is still there for folks wanting to use the older VS2008. The fixes I made to the source code for the missing symbols are backwards compatible with the older compiler. --john -----Original Message----- From: Robert Hegner [mailto:rh...@hs...] Sent: Friday, July 29, 2011 2:38 AM To: ope...@li... Subject: Re: [Openslp-users] Static linking of slpstatic.lib Hi John, Thank you for your help! I can compile my project now but it doesn't link because the prebuilt libraries seem to use a different runtime library than my executable. So I tried to build OpenSLP with VS2010 by myself. However I get a lot of warnings (which are treated as errors) because some constants (defines) of slp_socket.h are also defined in \Microsoft Visual Studio 10.0\VC\include\errno.h (ETIMEDOUT, ENOTCONN, ...). Have you ever tried to build OpenSLP with VS2010? Do you know a workaround for this problem? Thanks, Robert. Am 28.07.2011 18:13, schrieb John Calcote: > Hi Robert, > > You have to define LIBSLP_STATIC on the compiler command line when you > link statically to libslp on Windows. This changes the function > prototype in slp.h so that the linker looks for static symbols instead > of dynamic imports (that start with __imp__). > > John > > -----Original Message----- > From: Robert Hegner [mailto:rh...@hs...] > Sent: Thursday, July 28, 2011 10:06 AM > To: ope...@li... > Subject: [Openslp-users] Static linking of slpstatic.lib > > The Windows installers of OpenSLP 2.0.0 Beta 2 contain libraries for > dynamic and static linking. > > My application works fine with dynamic linking, but I'd like to link > statically to slpstatic.lib. > > However, then I get the following linking errors (VC++ 2010): > > error LNK2019: unresolved external symbol __imp__SLPClose referenced > in function _main error LNK2019: unresolved external symbol > __imp__SLPReg referenced in function _main error LNK2019: unresolved > external symbol __imp__SLPOpen referenced in function _main > > Why can't these functions be found? > > Robert. > > > ---------------------------------------------------------------------- > ------ > -- > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users > > > ---------------------------------------------------------------------------- -- > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey ---------------------------------------------------------------------------- -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Openslp-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openslp-users |
From: John C. <joh...@gm...> - 2011-07-29 15:21:40
|
Actually, we just recently updated to VS2008. We're a bit behind because we don't want to force people to upgrade. I guess that's not as important as it used to be, now that Microsoft has made the better part of its tools available for download. I'll give it a try myself and let you know what happens. --john -----Original Message----- From: Robert Hegner [mailto:rh...@hs...] Sent: Friday, July 29, 2011 2:38 AM To: ope...@li... Subject: Re: [Openslp-users] Static linking of slpstatic.lib Hi John, Thank you for your help! I can compile my project now but it doesn't link because the prebuilt libraries seem to use a different runtime library than my executable. So I tried to build OpenSLP with VS2010 by myself. However I get a lot of warnings (which are treated as errors) because some constants (defines) of slp_socket.h are also defined in \Microsoft Visual Studio 10.0\VC\include\errno.h (ETIMEDOUT, ENOTCONN, ...). Have you ever tried to build OpenSLP with VS2010? Do you know a workaround for this problem? Thanks, Robert. Am 28.07.2011 18:13, schrieb John Calcote: > Hi Robert, > > You have to define LIBSLP_STATIC on the compiler command line when you > link statically to libslp on Windows. This changes the function > prototype in slp.h so that the linker looks for static symbols instead > of dynamic imports (that start with __imp__). > > John > > -----Original Message----- > From: Robert Hegner [mailto:rh...@hs...] > Sent: Thursday, July 28, 2011 10:06 AM > To: ope...@li... > Subject: [Openslp-users] Static linking of slpstatic.lib > > The Windows installers of OpenSLP 2.0.0 Beta 2 contain libraries for > dynamic and static linking. > > My application works fine with dynamic linking, but I'd like to link > statically to slpstatic.lib. > > However, then I get the following linking errors (VC++ 2010): > > error LNK2019: unresolved external symbol __imp__SLPClose referenced > in function _main error LNK2019: unresolved external symbol > __imp__SLPReg referenced in function _main error LNK2019: unresolved > external symbol __imp__SLPOpen referenced in function _main > > Why can't these functions be found? > > Robert. > > > ---------------------------------------------------------------------- > ------ > -- > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users > > > ---------------------------------------------------------------------------- -- > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey ---------------------------------------------------------------------------- -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Openslp-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openslp-users |
From: Robert H. <rh...@hs...> - 2011-07-29 08:38:31
|
Hi John, Thank you for your help! I can compile my project now but it doesn't link because the prebuilt libraries seem to use a different runtime library than my executable. So I tried to build OpenSLP with VS2010 by myself. However I get a lot of warnings (which are treated as errors) because some constants (defines) of slp_socket.h are also defined in \Microsoft Visual Studio 10.0\VC\include\errno.h (ETIMEDOUT, ENOTCONN, ...). Have you ever tried to build OpenSLP with VS2010? Do you know a workaround for this problem? Thanks, Robert. Am 28.07.2011 18:13, schrieb John Calcote: > Hi Robert, > > You have to define LIBSLP_STATIC on the compiler command line when you link > statically to libslp on Windows. This changes the function prototype in > slp.h so that the linker looks for static symbols instead of dynamic imports > (that start with __imp__). > > John > > -----Original Message----- > From: Robert Hegner [mailto:rh...@hs...] > Sent: Thursday, July 28, 2011 10:06 AM > To: ope...@li... > Subject: [Openslp-users] Static linking of slpstatic.lib > > The Windows installers of OpenSLP 2.0.0 Beta 2 contain libraries for dynamic > and static linking. > > My application works fine with dynamic linking, but I'd like to link > statically to slpstatic.lib. > > However, then I get the following linking errors (VC++ 2010): > > error LNK2019: unresolved external symbol __imp__SLPClose referenced in > function _main error LNK2019: unresolved external symbol __imp__SLPReg > referenced in function _main error LNK2019: unresolved external symbol > __imp__SLPOpen referenced in function _main > > Why can't these functions be found? > > Robert. > > > ---------------------------------------------------------------------------- > -- > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey |
From: John C. <joh...@gm...> - 2011-07-28 16:13:53
|
Hi Robert, You have to define LIBSLP_STATIC on the compiler command line when you link statically to libslp on Windows. This changes the function prototype in slp.h so that the linker looks for static symbols instead of dynamic imports (that start with __imp__). John -----Original Message----- From: Robert Hegner [mailto:rh...@hs...] Sent: Thursday, July 28, 2011 10:06 AM To: ope...@li... Subject: [Openslp-users] Static linking of slpstatic.lib The Windows installers of OpenSLP 2.0.0 Beta 2 contain libraries for dynamic and static linking. My application works fine with dynamic linking, but I'd like to link statically to slpstatic.lib. However, then I get the following linking errors (VC++ 2010): error LNK2019: unresolved external symbol __imp__SLPClose referenced in function _main error LNK2019: unresolved external symbol __imp__SLPReg referenced in function _main error LNK2019: unresolved external symbol __imp__SLPOpen referenced in function _main Why can't these functions be found? Robert. ---------------------------------------------------------------------------- -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Openslp-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openslp-users |
From: Robert H. <rh...@hs...> - 2011-07-28 16:06:49
|
The Windows installers of OpenSLP 2.0.0 Beta 2 contain libraries for dynamic and static linking. My application works fine with dynamic linking, but I'd like to link statically to slpstatic.lib. However, then I get the following linking errors (VC++ 2010): error LNK2019: unresolved external symbol __imp__SLPClose referenced in function _main error LNK2019: unresolved external symbol __imp__SLPReg referenced in function _main error LNK2019: unresolved external symbol __imp__SLPOpen referenced in function _main Why can't these functions be found? Robert. |
From: Robert H. <rh...@hs...> - 2011-07-28 14:01:44
|
Wow, that was it!!! Thanks a lot Roel! This should be mentioned in big red letters in the documentation and in the usage description of slptool. It would have saved me two or more days of debugging! But this setting is not even described in the slp.conf File description in the Users Guide. When you just start slptool and see all the examples there it looks like you can just play around with registering and finding services... Now it works in my switched private network but also in the company network with two Win7 x64 machines :) Thanks again Robert. Am 28.07.2011 15:41, schrieb Roel van de Kraats: > > > On 07/28/2011 03:22 PM, Robert Hegner wrote: >> I did some more tests with slptool. And it looks like it is not a >> problem of my network environment, because under some conditions I can >> get it to work. But I still don't really understand what's going on. I >> hope someone can explain... >> >> For the following tests I will again use two WinXP boxes in my private >> network (with just an unmanaged switch) with OpenSLP 2.0.0 Beta 2. >> >> When I use empty slp.conf and slp.reg files on both machines, it doesn't >> work. So >> slptool register service:myserv.x://myhost.com >> on one machine and >> slptool findsrvs service:myserv.x >> on the same or on another machine doesn't give any results. > Hi Robert, > > With the default settings, a registration will automatically be removed > a few seconds after the process disappeared that made the registration. > This is to prevent keeping 'dangling' registrations from processes that > didn't properly deregister. > > In case you use 'slptool register' the process making the registration > is 'slptool', which immediately exits. The registration is therefore > automatically removed a few seconds afterwards. > > Try using a configuration file with 'net.slp.watchRegistrationPID = false'. > > BR, > Roel >> >> But when I statically add >> service:myserv2.x://myhost2.com,en,65535 >> to slp.reg on one machine and restart the slpd daemon, I can always find >> this service from both machines! >> >> From now on, when I add additional services dynamically, I can >> sometimes find the dynamically added service (I have to register it >> several times, and then sometimes it can be found, maybe once or so). >> >> Right now for me it looks like its more a problem of OpenSLP... >> >> Any ideas? >> >> Robert. >> >> >> Am 27.07.2011 20:50, schrieb Nick Wagner: >>> My experience with unmanaged switches is quite different -- multicasts >>> are just sent to everyone, rather than being dropped. Have you tried >>> sniffing to make sure the multicast gets to the other side, or that the >>> windows firewall isn't excluding the packets? >>> >>> But, to answer your other question, I think slp.conf's >>> net.slp.useBroadcast variable is supposed to affect the UA functionality >>> as well as SA/DA functionality. >>> >>> --Nick >>> >>> On Wed, Jul 27, 2011 at 10:37 AM, Robert Hegner >>> <rh...@hs... >>> <mailto:rh...@hs...>> wrote: >>> >>> Hi all, >>> >>> I'm new to SLP and I'm also not really a network specialist... >>> >>> What I want to do right now is just a little test using slptool with two >>> computers, one acting as a SA, the other acting as a UA. >>> >>> I tried this in my company network but I couldn't get it running. So I >>> thought it might be easier to start in my own little private network >>> first. Now the thing is that there is just an (unmanaged) switch in that >>> network, so multicasts are not supported. >>> >>> Is it true that SLP can also use broadcasts, if multicasts are not >>> allowed? I found that on the SA side I can force slpd to use broadcasts. >>> But how can I make sure that findsrvs also uses broadcasts to find >>> the SA? >>> >>> In my little private network I'm using OpenSLP 2.0.0 Beta 2 on WinXP >>> boxes. >>> >>> Any help or information would be highly appreciated! >>> >>> Thanks, >>> Robert. >>> >>> PS: I posted a similar question on serverfault, but it looks like not >>> much SLP relation discussion is going on over there. >>> http://serverfault.com/questions/294569/using-slp-service-location-protocol-in-an-environment-without-multicast-opensl >>> >>> >>> ------------------------------------------------------------------------------ >>> Got Input? Slashdot Needs You. >>> Take our quick survey online. Come on, we don't ask for help often. >>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>> http://p.sf.net/sfu/slashdot-survey >>> _______________________________________________ >>> Openslp-users mailing list >>> Ope...@li... >>> <mailto:Ope...@li...> >>> https://lists.sourceforge.net/lists/listinfo/openslp-users >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Got Input? Slashdot Needs You. >>> Take our quick survey online. Come on, we don't ask for help often. >>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>> http://p.sf.net/sfu/slashdot-survey >>> >>> >>> >>> _______________________________________________ >>> Openslp-users mailing list >>> Ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/openslp-users >> >> >> ------------------------------------------------------------------------------ >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> _______________________________________________ >> Openslp-users mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openslp-users > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey |
From: Roel v. de K. <rk...@dd...> - 2011-07-28 13:42:12
|
On 07/28/2011 03:22 PM, Robert Hegner wrote: > I did some more tests with slptool. And it looks like it is not a > problem of my network environment, because under some conditions I can > get it to work. But I still don't really understand what's going on. I > hope someone can explain... > > For the following tests I will again use two WinXP boxes in my private > network (with just an unmanaged switch) with OpenSLP 2.0.0 Beta 2. > > When I use empty slp.conf and slp.reg files on both machines, it doesn't > work. So > slptool register service:myserv.x://myhost.com > on one machine and > slptool findsrvs service:myserv.x > on the same or on another machine doesn't give any results. Hi Robert, With the default settings, a registration will automatically be removed a few seconds after the process disappeared that made the registration. This is to prevent keeping 'dangling' registrations from processes that didn't properly deregister. In case you use 'slptool register' the process making the registration is 'slptool', which immediately exits. The registration is therefore automatically removed a few seconds afterwards. Try using a configuration file with 'net.slp.watchRegistrationPID = false'. BR, Roel > > But when I statically add > service:myserv2.x://myhost2.com,en,65535 > to slp.reg on one machine and restart the slpd daemon, I can always find > this service from both machines! > > From now on, when I add additional services dynamically, I can > sometimes find the dynamically added service (I have to register it > several times, and then sometimes it can be found, maybe once or so). > > Right now for me it looks like its more a problem of OpenSLP... > > Any ideas? > > Robert. > > > Am 27.07.2011 20:50, schrieb Nick Wagner: >> My experience with unmanaged switches is quite different -- multicasts >> are just sent to everyone, rather than being dropped. Have you tried >> sniffing to make sure the multicast gets to the other side, or that the >> windows firewall isn't excluding the packets? >> >> But, to answer your other question, I think slp.conf's >> net.slp.useBroadcast variable is supposed to affect the UA functionality >> as well as SA/DA functionality. >> >> --Nick >> >> On Wed, Jul 27, 2011 at 10:37 AM, Robert Hegner >> <rh...@hs... >> <mailto:rh...@hs...>> wrote: >> >> Hi all, >> >> I'm new to SLP and I'm also not really a network specialist... >> >> What I want to do right now is just a little test using slptool with two >> computers, one acting as a SA, the other acting as a UA. >> >> I tried this in my company network but I couldn't get it running. So I >> thought it might be easier to start in my own little private network >> first. Now the thing is that there is just an (unmanaged) switch in that >> network, so multicasts are not supported. >> >> Is it true that SLP can also use broadcasts, if multicasts are not >> allowed? I found that on the SA side I can force slpd to use broadcasts. >> But how can I make sure that findsrvs also uses broadcasts to find >> the SA? >> >> In my little private network I'm using OpenSLP 2.0.0 Beta 2 on WinXP >> boxes. >> >> Any help or information would be highly appreciated! >> >> Thanks, >> Robert. >> >> PS: I posted a similar question on serverfault, but it looks like not >> much SLP relation discussion is going on over there. >> http://serverfault.com/questions/294569/using-slp-service-location-protocol-in-an-environment-without-multicast-opensl >> >> >> ------------------------------------------------------------------------------ >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> _______________________________________________ >> Openslp-users mailing list >> Ope...@li... >> <mailto:Ope...@li...> >> https://lists.sourceforge.net/lists/listinfo/openslp-users >> >> >> >> >> ------------------------------------------------------------------------------ >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> >> >> >> _______________________________________________ >> Openslp-users mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openslp-users > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users |
From: Robert H. <rh...@hs...> - 2011-07-28 13:23:17
|
I did some more tests with slptool. And it looks like it is not a problem of my network environment, because under some conditions I can get it to work. But I still don't really understand what's going on. I hope someone can explain... For the following tests I will again use two WinXP boxes in my private network (with just an unmanaged switch) with OpenSLP 2.0.0 Beta 2. When I use empty slp.conf and slp.reg files on both machines, it doesn't work. So slptool register service:myserv.x://myhost.com on one machine and slptool findsrvs service:myserv.x on the same or on another machine doesn't give any results. But when I statically add service:myserv2.x://myhost2.com,en,65535 to slp.reg on one machine and restart the slpd daemon, I can always find this service from both machines! From now on, when I add additional services dynamically, I can sometimes find the dynamically added service (I have to register it several times, and then sometimes it can be found, maybe once or so). Right now for me it looks like its more a problem of OpenSLP... Any ideas? Robert. Am 27.07.2011 20:50, schrieb Nick Wagner: > My experience with unmanaged switches is quite different -- multicasts > are just sent to everyone, rather than being dropped. Have you tried > sniffing to make sure the multicast gets to the other side, or that the > windows firewall isn't excluding the packets? > > But, to answer your other question, I think slp.conf's > net.slp.useBroadcast variable is supposed to affect the UA functionality > as well as SA/DA functionality. > > --Nick > > On Wed, Jul 27, 2011 at 10:37 AM, Robert Hegner > <rh...@hs... > <mailto:rh...@hs...>> wrote: > > Hi all, > > I'm new to SLP and I'm also not really a network specialist... > > What I want to do right now is just a little test using slptool with two > computers, one acting as a SA, the other acting as a UA. > > I tried this in my company network but I couldn't get it running. So I > thought it might be easier to start in my own little private network > first. Now the thing is that there is just an (unmanaged) switch in that > network, so multicasts are not supported. > > Is it true that SLP can also use broadcasts, if multicasts are not > allowed? I found that on the SA side I can force slpd to use broadcasts. > But how can I make sure that findsrvs also uses broadcasts to find > the SA? > > In my little private network I'm using OpenSLP 2.0.0 Beta 2 on WinXP > boxes. > > Any help or information would be highly appreciated! > > Thanks, > Robert. > > PS: I posted a similar question on serverfault, but it looks like not > much SLP relation discussion is going on over there. > http://serverfault.com/questions/294569/using-slp-service-location-protocol-in-an-environment-without-multicast-opensl > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > <mailto:Ope...@li...> > https://lists.sourceforge.net/lists/listinfo/openslp-users > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > > > > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users |
From: Robert H. <rh...@hs...> - 2011-07-28 07:33:53
|
Hi Nick, Thanks for your response! Ok I did some test with two machines (192.168.0.2 and 192.168.0.3) in my little private network. Windows firewall is disabled on both machines. On 192.168.0.2 I'm running Wireshark to watch network traffic. I filtered out some protocols (vnc, tcp, arp, dhcpv6, browser, nbns, ntp) to reduce noise. Test with ping: --------------- Running ping 239.255.255.253 from both machines gives the following output in Wireshark: No. Time Source Destination Protocol Length Info 1138 9.789985 192.168.0.2 239.255.255.253 ICMP 74 Echo (ping) request id=0x0200, seq=256/1, ttl=128 1209 15.208395 192.168.0.2 239.255.255.253 ICMP 74 Echo (ping) request id=0x0200, seq=512/2, ttl=128 1285 20.710157 192.168.0.2 239.255.255.253 ICMP 74 Echo (ping) request id=0x0200, seq=768/3, ttl=128 1333 26.212118 192.168.0.2 239.255.255.253 ICMP 74 Echo (ping) request id=0x0200, seq=1024/4, ttl=128 1609 47.322141 192.168.0.3 239.255.255.253 ICMP 74 Echo (ping) request id=0x0200, seq=3328/13, ttl=128 1657 52.771964 192.168.0.3 239.255.255.253 ICMP 74 Echo (ping) request id=0x0200, seq=3584/14, ttl=128 1706 58.271775 192.168.0.3 239.255.255.253 ICMP 74 Echo (ping) request id=0x0200, seq=3840/15, ttl=128 1751 63.771866 192.168.0.3 239.255.255.253 ICMP 74 Echo (ping) request id=0x0200, seq=4096/16, ttl=128 So, as you said, it looks like everyone can see packets sent to this address. So far so good. Test with iperf: ---------------- Next I try to send some data from 192.168.0.3 to 192.168.0.2 using iperf. On 192.168.0.2 I set up a server with: iperf -s -u -B 239.255.255.253 -p 427 -i 1 The output on the console is: bind failed: Cannot assign requested address multicast join failed: Invalid argument ------------------------------------------------------------ Server listening on UDP port 427 Binding to local address 239.255.255.253 Joining multicast group 239.255.255.253 Receiving 1470 byte datagrams UDP buffer size: 64.0 KByte (default) ------------------------------------------------------------ On the client side I execute iperf -c 239.255.255.253 -p 427 -u -T 32 -t 3 -i 1 which outputs the following on the console: ------------------------------------------------------------ Client connecting to 239.255.255.253, UDP port 427 Sending 1470 byte datagrams Setting multicast TTL to 32 UDP buffer size: 64.0 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.0.3 port 2787 connected with 239.255.255.253 port 427 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 129 KBytes 1.06 Mbits/sec [ 3] 1.0- 2.0 sec 128 KBytes 1.05 Mbits/sec [ 3] 2.0- 3.0 sec 128 KBytes 1.05 Mbits/sec [ 3] 0.0- 3.0 sec 386 KBytes 1.05 Mbits/sec [ 3] Sent 269 datagrams The Wireshark output on 192.168.0.2 (the server/receiver side) is many entries in the form: No. Time Source Destination Protocol Length Info 6673 311.288271 192.168.0.2 239.255.255.253 SRVLOC 91 Service Request, V2 XID - 6121 6734 317.416200 192.168.0.3 239.255.255.253 SRVLOC 1512 Unknown Function (0), V1 Transaction ID - 31182 6735 317.436718 192.168.0.3 239.255.255.253 SRVLOC 1512 Unknown Function (0), V1 Transaction ID - 53182 6736 317.438637 192.168.0.3 239.255.255.253 SRVLOC 1512 Unknown Function (0), V1 Transaction ID - 55182 But the iperf server doesn't receive anything. From what it says at startup (multicast join failed) I guess this is because there is no instance in my private network which can handle assignments of clients to multicast groups. Test with OpenSLP: ------------------ Ok and now what happens with OpenSLP. I use default settings (no config file present). On 192.168.0.2 I run: slptool register service:myserv.x://myhost.com There's no output on the console and no traffic in Wireshark so far (on 192.168.0.2). Then on 192.168.0.3 I run: slptool findsrvs service:myserv.x There's no output on the console (so no SA found...) and the output in Wireshark (again on 192.168.0.2) is: No. Time Source Destination Protocol Length Info 4567 383.247304 192.168.0.3 239.255.255.253 SRVLOC 98 Service Request, V2 XID - 19892 4577 383.748123 192.168.0.3 239.255.255.253 SRVLOC 98 Service Request, V2 XID - 19892 4632 384.498831 192.168.0.3 239.255.255.253 SRVLOC 91 Service Request, V2 XID - 19893 4641 384.999819 192.168.0.3 239.255.255.253 SRVLOC 91 Service Request, V2 XID - 19893 7131 411.999863 192.168.0.3 239.255.255.253 SRVLOC 91 Service Request, V2 XID - 32641 7754 426.999841 192.168.0.3 239.255.255.253 SRVLOC 91 Service Request, V2 XID - 32642 7812 441.999939 192.168.0.3 239.255.255.253 SRVLOC 91 Service Request, V2 XID - 32643 Where some of the requests are for service:directory-agent and some of them are for service:myserv.x Conclusion: ----------- So network traffic doesn't look too bad. But iperf and OpenSLP don't work. Any ideas on how I could solve this or how I could debug it further? Any help is appreciated! Robert. Am 27.07.2011 20:50, schrieb Nick Wagner: > My experience with unmanaged switches is quite different -- multicasts > are just sent to everyone, rather than being dropped. Have you tried > sniffing to make sure the multicast gets to the other side, or that the > windows firewall isn't excluding the packets? > > But, to answer your other question, I think slp.conf's > net.slp.useBroadcast variable is supposed to affect the UA functionality > as well as SA/DA functionality. > > --Nick > > On Wed, Jul 27, 2011 at 10:37 AM, Robert Hegner > <rh...@hs... > <mailto:rh...@hs...>> wrote: > > Hi all, > > I'm new to SLP and I'm also not really a network specialist... > > What I want to do right now is just a little test using slptool with two > computers, one acting as a SA, the other acting as a UA. > > I tried this in my company network but I couldn't get it running. So I > thought it might be easier to start in my own little private network > first. Now the thing is that there is just an (unmanaged) switch in that > network, so multicasts are not supported. > > Is it true that SLP can also use broadcasts, if multicasts are not > allowed? I found that on the SA side I can force slpd to use broadcasts. > But how can I make sure that findsrvs also uses broadcasts to find > the SA? > > In my little private network I'm using OpenSLP 2.0.0 Beta 2 on WinXP > boxes. > > Any help or information would be highly appreciated! > > Thanks, > Robert. > > PS: I posted a similar question on serverfault, but it looks like not > much SLP relation discussion is going on over there. > http://serverfault.com/questions/294569/using-slp-service-location-protocol-in-an-environment-without-multicast-opensl > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Openslp-users mailing list > Ope...@li... > <mailto:Ope...@li...> > https://lists.sourceforge.net/lists/listinfo/openslp-users > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > > > > _______________________________________________ > Openslp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openslp-users |