gmcgrath
asked on
TCP/IP sockets in CW simple example
I am looking for a simple C/C++ CW "hello world" like example of doing berkley sockets in code warrior.
I know how to do sockets under UNIX, but I don't know where to start on the Mac. I just want to open a connection, recieve a few bytes and send a few back. Mostly, I just want to know what libraries I need to use with CW to do it, thus I am hoping for a CW project file.
Anything that has a sockets example in it and compiles under CW 8 would be great.
Thank you for any help.
I know how to do sockets under UNIX, but I don't know where to start on the Mac. I just want to open a connection, recieve a few bytes and send a few back. Mostly, I just want to know what libraries I need to use with CW to do it, thus I am hoping for a CW project file.
Anything that has a sockets example in it and compiles under CW 8 would be great.
Thank you for any help.
I don't believe there is a sockets API on the Mac. You should be probably looking at the CW 11 PP network/internet classes.
There is a sockets API for the Mac. It is shareware, and you got it with your CodeWarrior. It's called GUSI, and it should reside in your Demos/SDKs folder on the CDs. If I recall correctly, it comes with a simple sample app.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.