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.
> >
> >
>

 

 

------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Openslp-devel mailing list
Openslp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openslp-devel

Reply via email to