Sudheer,
I think you're on the right track. Keep in mind that you can set the slp.conf path on the configure command line - the path used by the libraries and services built is thus hard-coded into the applications and libraries. Set it to something closer to you, and to which you have more rights. Where you choose to locate your configuration file should be based on the way your OS stores and accesses such configuration files. I'm not familiar with the way iOS works, so I can't help you there, but as a developer, some of these things should already be clear to you. John From: sudheer dantuluri [mailto:dantuluri.sudh...@gmail.com] Sent: Tuesday, August 16, 2011 5:44 AM To: John Calcote Cc: Varun Chandramohan; openslp-devel@lists.sourceforge.net; Hird Matthew; Nick Wagner Subject: Re: [Openslp-devel] SLP User Agent for iPad/iPhone Hi John, Thanks for your support. As you mentioned, I've tested with slptool on Mac OS X, Leopard as well as on Snow Leopard. We already have an app which is using SLP and ACN, so I've tested the slptool that is present in that particular application and came to know that the tool is looking for slp.conf file in a particular location(/usr/local/etc/slp.conf). When we tested on Leopard using slptool, we got all the devices in the network, but when we tested on SnowLeopard using slptool, initially we didn't get any devices. Later found that the slp.conf file in /usr/loca/etc/ is missing. So, placed that file in that particular location and then we are able to see all the devices using slptool in Mac OS. I think that the same issue exists in iOS as well as we are not using the slp.conf file. Please find the attached output after compiling OpenSLP for iOS. We are just using the slp.h include file and the libslp.a static library from that output in our iOS application. Since we cannot place the slp.conf file to root directory as iPhone is Sand Boxed, we must have some way to either set the configuration in the code itself or set the path of the slp.conf file explicitly so that we can have the slp.conf file in our project and set the path to that specific file? Please let us know if we are going in a wrong way anywhere. NOTE: we are working on openslp-1.2.1 version. Getting errors while compiling openslp-2.0.beta2 . Thanks Sudheer On Sun, Aug 14, 2011 at 8:31 PM, John Calcote <john.calc...@gmail.com> wrote: P.S. Don't give up - openslp is used pervasively - even by hardware vendors - so it's not a problem with the spec or the library, unless it's a porting issue. It's probably something as simple as not looking for the same thing you're advertising, which can happen when you misformat your query string. From: John Calcote [mailto:john.calc...@gmail.com] Sent: Sunday, August 14, 2011 8:57 AM To: 'sudheer dantuluri' Cc: 'Varun Chandramohan'; openslp-devel@lists.sourceforge.net; 'Hird Matthew'; 'Nick Wagner' Subject: RE: [Openslp-devel] SLP User Agent for iPad/iPhone Sudheer, I could throw out suggestions - dozens of them. Some would probably be close, others would be nowhere near the problem. In this situation, especially where you've ported the library to a new platform, it's probably going to do you much more good to simply debug your application - step into the client library and see where your failure is coming from. If you find an exact function that's causing an error to be returned, post that information. If you're not getting an error, but simply an empty list of results, then you should form the same request with slptool (on a tested platform like windows or linux - or even the mac) to determine if you're forming your request properly. Regards, John From: sudheer dantuluri [mailto:dantuluri.sudh...@gmail.com] Sent: Friday, August 12, 2011 3:57 AM To: John Calcote Cc: Varun Chandramohan; openslp-devel@lists.sourceforge.net; Hird Matthew; Nick Wagner Subject: Re: [Openslp-devel] SLP User Agent for iPad/iPhone Hi All, After compiling the OpenSLP for iOS, the output was a static library libslp.a. Now, we have created a sample iOS application with the code mentioned in the link ( http://openslp.org/doc/html/ProgrammersGuide/SLPFindSrvs.html ) to find the devices in the network. The call back is getting called but with an error code as errcode == SLP_LAST_CALL and thus resulting in the following log. Service URL = (null) Service Timeout = 0 There are two devices in the network with the service which I'm looking for but I'm not getting those devices when I use the code mentioned in the above link. Can someone help me out as what could be the problem. Please find the code snippet as attached. Thanks Sudheer On Fri, Aug 12, 2011 at 12:41 PM, John Calcote <john.calc...@gmail.com> wrote: Hi Sudheer, The first place to start is the documentation on the openslp.org website. Thanks to the efforts of one of our team members, Alan Adams, we have some very clean documentation. Start with the OpenSLP Programmer's Guide (http://openslp.org/doc/html/ProgrammersGuide/index.html). Look particularly at the service location functions in the bottom left corner. These three functions are at the heart of every User Agent (UA) application. Click on a function - SLPFindSrvs, for instance - they have great docs, and example code at the bottom of the page. In short, include slp.h in your code to prototype the functions and give your code access to the requisite OpenSLP data structures. Follow the example code you find in the programmer's guide. Regards, John From: sudheer dantuluri [mailto:dantuluri.sudh...@gmail.com] Sent: Friday, August 12, 2011 12:22 AM To: Varun Chandramohan Cc: openslp-devel@lists.sourceforge.net; Hird Matthew; John Calcote; Nick Wagner Subject: Re: [Openslp-devel] SLP User Agent for iPad/iPhone Hi All, We've tried compiling OpenSLP-2.0.beta2 version for iOS and was successful after using some patches to fix few issues and were successful in compiling the source for iOS. Now I just want to know how to use it with out using SLPD. Since there is no option to run separate processes in iOS, we can't run SLPD in iOS. I just want to have a User Agent functionality for my iOS app which actually discovers all the devices with a specific service in the network. Can anyone help me out as how to proceed further (which functions to use) in discovering the devices without using SLPD. Thanks Sudheer 2011/7/27 Varun Chandramohan <var...@linux.vnet.ibm.com> Hi Sudheer, I think better option would be for you to use the latest source. openslp-2.0-beat2. Iam not an expert in ipad/iphone development, but i know that one of the developers here have atleast tested it on mac os! Regards, Varun On Monday, July 25, 2011 03:13:56 pm sudheer dantuluri wrote: > Hi John, Hird & Nick, > > Good Morning !!! > I've started working on building an openSLP library for iPad. For that I've > started going through the documentation. Also downloaded the source code. > Initially I've tried compiling the source code from terminal for Mac as > follows. > > ./configure --prefix='/Users/sudheer/Desktop/openslp/Output' > make > make install > > then tried the same for iPad by specifying the compiler and architecture as > follows. > > ./configure > --prefix='/Users/sudheer/Desktop/OpenSLP/openslp-1.2.1/Output' > CC='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwi n10-gcc-4.2.1' > --target-os=darwin --arch=arm --cpu=arm1176jzf-s --prefix='armv7' > ./configure > --prefix='/Users/sudheer/Desktop/OpenSLP/openslp-1.2.1/Output' > CC='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwi n10-gcc-4.2.1' > --arch=arm > > This resulted in errors saying that there are no such specific options like > --arch. Later can to know that just trying to compile for iPad with specific > options in configure doesn't help and we need to do some code changes as > well as changes in configuration files if required. > > It would be great if someone can give me a start up as what are the major > things that I need to work on to successfully achieve a static library for > iPad. Your inputs will really help me a lot. > > Thanks > Sudheer > > > > > On Mon, Jul 18, 2011 at 10:12 PM, Hird Matthew < > matthew.h...@uk.thalesgroup.com> wrote: > > > ** > > Hi John > > > > Yes, Sudheer contacted me personally and I gave him the same advice - I > > wouldn't have thought it was that hard. > > > > Sudheer, if you do port it, don't forget to feed it back to the project. > > > > cheers > > Matt > > > > **** > > > > ------------------------------ > > *From:* John Calcote [mailto:john.calc...@gmail.com] > > *Sent:* 15 July 2011 23:04 > > *To:* 'Nick Wagner'; 'sudheer dantuluri' > > > > *Cc:* openslp-devel@lists.sourceforge.net > > *Subject:* Re: [Openslp-devel] SLP User Agent for iPad/iPhone > > > > Hi Nick,**** > > > > ** ** > > > > Sudheer contacted me personally this morning. I told him I thought a port > > of the SLP UA was possible and probably not that difficult, if you're > > persistent.**** > > > > **** > > > > Regarding port 427 - that's a server-side issue. You can open any > > client-side port and send to 427 on the server without root privileges. Am I > > missing something? (I could be - I didn't get a lot of sleep last night. :-) > > )**** > > > > ** ** > > > > John**** > > > > ** ** > > > > *From:* Nick Wagner [mailto:ne...@wingedbeast.org] > > *Sent:* Friday, July 15, 2011 2:50 PM > > *To:* sudheer dantuluri > > *Cc:* openslp-devel@lists.sourceforge.net > > *Subject:* Re: [Openslp-devel] SLP User Agent for iPad/iPhone**** > > > > ** ** > > > > I haven't done any ipad development, does anyone else on the list have > > experience? I know some people have been able to build and get the client > > side working on android.**** > > > > ** ** > > > > One potential issue I can see is the fact that SLP uses port 427, which > > traditionally requires the process to have root access to open. **** > > > > ** ** > > > > --Nick**** > > > > On Thu, Jul 14, 2011 at 3:44 AM, sudheer dantuluri < > > dantuluri.sudh...@gmail.com> wrote:**** > > > > Hi Team,**** > > > > ** ** > > > > I'm an iPhone/iPad developer and I'm trying to develop an application which > > can identify devices which announces their services using SLP in a network. > > I've googled in may sites but couldn't find any help.**** > > > > It would be great if someone of you can help me out as how my iPad > > application can act as a User Agent role of SLP. Is there any specific > > framework or library for iPad where i can use it to get the devices in the > > network which acts as Service Agents role of SLP. I'm new to this SLP > > concept. So, please spare me and provide me some kind of solution.**** > > > > ** ** > > > > Thanks in advance.**** > > > > Have a nice day.**** > > > > Sudheer**** > > > > ** ** > > > > > > > > ---------------------------------------------------------------------------- -- > > AppSumo Presents a FREE Video for the SourceForge Community by Eric > > Ries, the creator of the Lean Startup Methodology on "Lean Startup > > Secrets Revealed." This video shows you how to validate your ideas, > > optimize your ideas and identify your business strategy. > > http://p.sf.net/sfu/appsumosfdev2dev > > _______________________________________________ > > Openslp-devel mailing list > > Openslp-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/openslp-devel**** > > > > ** ** > > > > This email, including any attachment, is a confidential communication > > intended solely for the use of the individual or entity to whom it is > > addressed. It contains information which is private and may be proprietary > > or covered by legal professional privilege. If you have received this email > > in error, please notify the sender upon receipt, and immediately delete it > > from your system. > > > > Anything contained in this email that is not connected with the businesses > > of this company is neither endorsed by nor is the liability of this company. > > > > Whilst we have taken reasonable precautions to ensure that any attachment > > to this email has been swept for viruses, we cannot accept liability for any > > damage sustained as a result of software viruses, and would advise that you > > carry out your own virus checks before opening any attachment. > > > > >
------------------------------------------------------------------------------ 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-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel