• 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
Problems with SCNetworkConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with SCNetworkConnection


  • Subject: Problems with SCNetworkConnection
  • From: Ralf Menssen <email@hidden>
  • Date: Mon, 13 Sep 2004 14:18:12 +0200

I'm writing an application that directly connects to the internet using our settings (not an illegal diealer!). There in ran into two problems:

1. a call to

SCNetworkConnectionCopyUserPreferences (NULL, &serviceID, &userOptions)

returns a good serviceID, but what I really want are the userOptions, to see their content. But userOptions are NULL.

If I try to get them later:
mhsDictionary = SCNetworkConnectionCopyUserOptions (gConnection);

I get a value, but accessing it e.g. with CFDictionaryGetCount results in a bus error.

2. To setup the connection I need a dictionary. This dictionary in not one-dimensional, but contains <dict> statements as one can see in the documentation. But I have not found any example and no word in the documentation, how to create sub-dictionaries. Always just the trivial keys/values examples.

I hope someone out here knows how to do it.

Thanks for your help in advance.

Ralf
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Next by Date: Internet/Network Settings
  • Next by thread: Internet/Network Settings
  • Index(es):
    • Date
    • Thread