image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
LinkBack Thread Tools
  #1  
Old April 9th, 2002, 07:08 AM
Registered User
 
Join Date: Dec 2001
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stereoboy20 is on a distinguished road
Exclamation Socket HELP!!! (in cocoa)

Hi. I'm absolutely new to cocoa. The thing is that I'm trying to write a MSN/Messenger clone in cocoa (I hate Microsoft's pitiful carbon messenger) and I find a problem... I have no idea of what classes I can use for connecting to the server! I guess NSSocketPort is the one, but it's absolutely undocumented. What can I do!!!

BTW, help is welcome. It will be open-source but not GPL (I hate GPL almost as much as I hate carbon...), maybe Artistic License or something similar to the smallSprockets license.
Reply With Quote
  #2  
Old April 9th, 2002, 04:48 PM
blb blb is offline
`'
 
Join Date: Apr 2001
Location: CO, USA
Posts: 651
Thanks: 0
Thanked 0 Times in 0 Posts
blb is on a distinguished road
If it's the documentation included with the devtools that doesn't mention NSSocketPort, go to Apple's Foundation docs as they recently updated them. There's also the PDF at that location.
Reply With Quote
  #3  
Old April 9th, 2002, 06:20 PM
Registered User
 
Join Date: Dec 2001
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stereoboy20 is on a distinguished road
Ok, got the Socket. How do I read from and write to the socket? May be a stupid question, but I have only programmed sockets in Java and REALbasic before, so... don't have a clue.
Reply With Quote
  #4  
Old April 13th, 2002, 08:19 PM
Registered User
 
Join Date: Dec 2001
Location: Phoenix, AZ, US
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Colin is on a distinguished road
Post SmallSockets.

After messing around with Apple's sockets for a while and feeling it was way too much work, I moved to SmallSockets. Much faster and easier (in my opinion) to work with, and I can't imagine it wouldn't be suitable for your application.

SmallSockets is available from http://smallsockets.sf.net and is fairly small, so it doesn't add to your finished app's filesize too much.

If you're curious (don't know if you've worked much with sockets before), SmallSockets basically just wraps BSD sockets. Works very nicely.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the deal with socket paths? michaelsanford Unix & X11 2 November 13th, 2002 10:33 AM
Cocoa IE and MSN Messenger...but not office or WMP? wdw_ Apple News, Rumors & Discussion 8 October 4th, 2002 07:55 AM
String manipulation in Cocoa strikeman Software Programming & Web Scripting 10 July 31st, 2002 01:57 PM
AAS + Cocoa? whitesaint Software Programming & Web Scripting 2 February 20th, 2002 02:07 PM
Cocoa vs. Carbon??? knighthawk Software Programming & Web Scripting 4 July 23rd, 2001 02:33 PM


All times are GMT -5. The time now is 09:30 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright 2000-2010 DigitalCrowd, Inc.