For user agent functionality, libslp does first look for directory agents to
connect to and query. But in the absence of a DA, libslp attempts multicast
requests. Do you see such multicast requests on the wire? Is
MI_NOT_SUPPORTED undefined (If defined, multicast is not compiled in)?
--Nick
On Wed, Sep 21, 2011 at 12:17 PM, JanakiRam Palepu <
palepujanaki...@gmail.com> wrote:
> Hi Nick,
>
> My Requirement is to have a iOS Application to discover the enter devices
> without using Slpd ( as iOS cannot run processes such as Slpd due to its
> Sanbox nature ).
>
> In our environment we have a configured Mac ( having iOS Simulator ) and
> Entertainment Devices only in our LAN.
>
> After compiling the code , make install produced a static library as well
> as header file and couple of resources ( slp.conf & slp.spi ) .
>
> We have created a Sample iOS application which uses libslp.a ( static
> library ) , resources ( slp.conf & slp.spi ) and header file ( slp.h ).
> Using the functions exposed in slp.h , we are making calls to SLPFindSrvs
> function.
>
> *Steps :*
> 1. Created a SLP Handle using SLPOpen.
> 2, After successful creation , calling SLPFindSrvs function with following
> Parameters.
>
> a) srvType : service:acn.esta
> b) scopelist : ACN-DEFAULT OR NULL
> c) filter : NULL
>
> 3. SLPFindSrvs Callback function gets called always but with varied
> results.
>
> a) When Slpd Co-existed in Mac OS , Callback function discovered the
> services available.
> b) In the absence of Slpd , Callback function gets called only once with
> "errorCode" value SLP_LAST_CALL whic does not discover the service at all.
>
>
> I suspect the libslp functions are heavily depend on Slpd existence. Am i
> wrong ??.
>
> Please help me to analyze the behavior of this function based on slpd
> existence.
>
> Thanks,
> Janakiram
>
> On Tue, Sep 20, 2011 at 8:31 PM, Nick Wagner <ne...@wingedbeast.org>wrote:
>
>> Hmm.. Could you get a wireshark trace of this? I'm curious to see if any
>> multicast is happening.
>>
>> Oh, and I'm glad to see the "service:acn.esta" in the example. I work at
>> ETC. :)
>>
>> --Nick
>>
>>
>>
>> On Tue, Sep 20, 2011 at 9:31 AM, sudheer dantuluri <
>> dantuluri.sudh...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> We have successfully compiled the openSLP2.0beta2 source code for iOS and
>>> with your instruction written a sample application to find out list of
>>> services available on the local network -- to do this we have used slp.h and
>>> libslp.a files created by GNU Make process.
>>>
>>> PFA Example file for the sample code.
>>>
>>> My Environment Setup has an iPhone Simulator and one Entertainment Device
>>> ( Wireless Audio Receiver exposing SLP service ), only these two are
>>> connected in LAN.
>>>
>>> The Same code (SLPFindSrvs callback function ) behaves differently when
>>> its executed along with/without slpd tool.
>>>
>>> Output when *SLPD is running* when Sample Code is Executed.
>>>
>>> -----------------------------------------------------------------------------------------
>>>
>>> *2011-09-20 17:29:49.739 openSLPExample[6105:207] Service Type =
>>> service:acn.esta*
>>>
>>> *2011-09-20 17:29:49.739 openSLPExample[6105:207] Host Identification =
>>> *
>>>
>>> *2011-09-20 17:29:49.740 openSLPExample[6105:207] Port Number = 0*
>>>
>>> *2011-09-20 17:29:49.740 openSLPExample[6105:207] Family = IP*
>>>
>>> *2011-09-20 17:29:49.740 openSLPExample[6105:207] URL Remainder =
>>> DD200C02-0000-11DD-A000-000EDDCCCCCC*
>>>
>>> *
>>> *
>>>
>>> Output when *SLPD is NOT RUNNING* when Sample Code is Executed.
>>>
>>> -----------------------------------------------------------------------------------------
>>>
>>> *2011-09-20 17:31:13.968 openSLPExample[6137:207]
>>> ***********************************************
>>>
>>> *2011-09-20 17:31:13.969 openSLPExample[6137:207] MySLPSrvURLCallback
>>> Error Code is = 1*
>>>
>>> *2011-09-20 17:31:13.970 openSLPExample[6137:207]
>>> ***********************************************
>>> *
>>> *
>>> ********************
>>>
>>> I suspect my sample code is internally taking the help of SLPD ( meaning
>>> DA) to discover the slp service exposed by the entertainment device. So
>>> thats why its showing the output only when the slpd is running.
>>>
>>> Problem with my environment is in iOS we cannot run the process such as
>>> slpd as its sanboxed. I can only use the static library and header file to
>>> discover the slp services.
>>>
>>> Please help me to resolve the issues.
>>>
>>>
>>> Thanks
>>> Sudheer
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> All the data continuously generated in your IT infrastructure contains a
>> definitive record of customers, application performance, security
>> threats, fraudulent activity and more. Splunk takes this data and makes
>> sense of it. Business sense. IT sense. Common sense.
>> http://p.sf.net/sfu/splunk-d2dcopy1
>> _______________________________________________
>> Openslp-devel mailing list
>> Openslp-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/openslp-devel
>>
>>
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Openslp-devel mailing list
Openslp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openslp-devel