NSL in OS X?
NSL in OS X?
- Subject: NSL in OS X?
- From: "Tomas Zahradnicky, Jr." <email@hidden>
- Date: Wed, 24 Apr 2002 23:24:13 +0200
Hello,
I'm trying to use NSL to register some entity on network, however if
I use NSLStandardRegisterURL, I get:
/private/var/root/Desktop/helloworld/helloworld_d: ERR:
SendDataToSLPd: write error on socket! error:Socket is not connected
What's wrong? I tried it with PPP and valid IP address and it didn't
work. Here's the code I use. Any idea?
err = NSLOpenNavigationAPI(&myClientRef);
if(!err)
{
slist = NSLMakeNewServicesList("justatest");
err = NSLMakeServicesRequestPB( slist, &newDataPtr);
nerr = NSLStandardRegisterURL("justatest://192.168.1.239?NAME=FOO",NULL);
nerr = NSLStandardDeregisterURL("justatest://192.168.1.239?NAME=FOO",NULL);
if(slist) NSLDisposeServicesList(slist);//nslcore/nslcore.h
NSLCloseNavigationAPI(myClientRef);
}
By the way I tried the NSL example from DTS and it didn't work at all
telling me that internal NSL error has occured.
-Tomas
--
# Tomas Zahradnicky, Jr
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.