Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mattjgalloway

macrumors member
Original poster
May 21, 2006
95
0
Hey,

Can anyone point me in the direction of classes within the SDK that I should/could be using to represent IP addresses (currently I've made my own class) and also a way to ping/detect network addresses. I've looked at a few things but nothing really seems to make sense at the moment.

I'm really new to the SDK!

Any advice much appreciated.
 

CommanderData

macrumors 6502
Dec 1, 2007
250
3
Hey,

Can anyone point me in the direction of classes within the SDK that I should/could be using to represent IP addresses (currently I've made my own class) and also a way to ping/detect network addresses. I've looked at a few things but nothing really seems to make sense at the moment.

I'm really new to the SDK!

Any advice much appreciated.

Try the code mentioned here:
http://toxicsoftware.com/new_sample_code_ping_tool/

It was actually written in Cocoa for the Mac (not by me), but I was able to adapt it quickly and use it in an iPhone application to ping IP addresses. You'll need to check out the code with SVN. Enjoy! :D
 

mattjgalloway

macrumors member
Original poster
May 21, 2006
95
0
That's awesome - thanks for that advice there! I'm going to look through that code and see what I can learn from it.

I'm really liking the SDK at the moment - I'm new to it (and new to GUI programming) but it's all seeming to make sense, which is really good. I've tried Qt and GTK before and never really got to grips with them enough.

Anyway, thanks again!
 

RobotGrrl

macrumors newbie
Oct 31, 2008
1
0
Hey CommanderData,

Would you mind posting your refined code so that newbies like me can use it? :)

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.