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
OpneSLP Example.rtf
Description: RTF file
------------------------------------------------------------------------------ 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