On Nov 25, 2011, at 2:56 PM, Koen van der Drift wrote: > On Nov 25, 2011, at 5:44 PM, Scott Ribe wrote: > >> As another response suggested, what's wrong with ntohl??? > > I implemented that function based on some code I found online, but got very > weird results, which is why I asked here. My knowledge on these esoteric > functions apparently isn't up to par :) > > As long as I end up with an array of x,y values, I really don't care how I > get there. Eventually they will need to end up in an NSArray for further > processing though.
That function is already implemented on every machine that support networking -- including Mac OS X. You don't need to implement it yourself -- just #include <arpa/inet.h> Do a man ntohl for more info. -- Glenn L. Austin, Computer Wizard and Race Car Driver <>< "Where there's breath, there's hope!" <http://www.austin-soft.com> _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com