Re: SCNetwork warnings [SOLVED]
Re: SCNetwork warnings [SOLVED]
- Subject: Re: SCNetwork warnings [SOLVED]
- From: Donald Hall <email@hidden>
- Date: Fri, 6 Jul 2007 23:00:15 -0600
Title: Re: SCNetwork warnings
[SOLVED]
If found an answer to this problem in a post by Randall Meadows
in the cocoa-dev mailing list 3 years ago. Moving the
statement
SCNetworkConnectionFlags flags;
inside the @try block made the warning go away.
Don
At 10:53 PM -0600 2007/07/06, Donald Hall wrote:
Can anyone tell me
what this means?
AppController.m:28:
warning: passing arg 2 of `SCNetworkCheckReachabilityByName' discards
qualifiers from pointer target type
Here is the
relevant code:
Boolean success;
BOOL
okay = NO;
@try
{
success = SCNetworkCheckReachabilityByName("www.apple.com", &flags);
okay
= success && (flags & kSCNetworkFlagsReachable) &&
!(flags & kSCNetworkFlagsConnectionRequired);
.
.
et
cetera
As far as I can
tell I am using this function exactly as spelled out in the
documentation.
Thanks,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden