Whenever I this sort of thing happens, there are a few steps I take:
1) Check your firewall and make sure it is either off or your application is
properly excepted. This has solved countless problems for me.
2) If you are expecting unicast traffic between two devices, make sure they
can send packets to each other. Are they both plugged in? Are their IP
configurations correct? Can they ping each other?
3) Get a wireshark trace of what's going on in your network. This will help
you determine if no multicast is leaving your machine, if no other app is
responding to your requests, or if something else is going on. The
wireshark display filter keyword for SLP is "srvloc".
4) If you think it is your application, either in a debugger or with
sprinkled test messages trace your code execution to see how it operates.
In your case, see if SLPFindSrvs actually gets to the point where it sends
a multicast packet, or if it somehow returns early.
--Nick
On Thu, Sep 22, 2011 at 7:04 AM, JanakiRam Palepu <palepujanaki...@gmail.com
> wrote:
> Yes, i investigated the functions being called and some of them were named
> with Multicast. Please find the functions being called for SLPFindSrvs.
>
>
> SLPFindSrvs -> ProcessSrvRqst
> -> NetworkMcastRqstRply,-> NetworkMcastRqstRply
> -> CollateToSLPSrvURLCallback
>
>
> *MI_NOT_SUPPORTED is not defined anywhere in the code. But conditional
> macros are using it as "not defined then adds logic & if defined does
> nothing".*
>
> **
>
> Please help me to discover slp services using UA.
>
>
> Cheers,
>
> Janakiram
>
>
> On Thu, Sep 22, 2011 at 12:12 AM, Nick Wagner <ne...@wingedbeast.org>wrote:
>
>> 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