• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSL in OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSL in OS X?
      • From: Quinn <email@hidden>
  • Prev by Date: Re: X: USB enet driver, unplugging problems
  • Next by Date: Re: NSL in OS X?
  • Previous by thread: CallAT example (was PAP not working in X)
  • Next by thread: Re: NSL in OS X?
  • Index(es):
    • Date
    • Thread