Solved

TCP/IP sockets in CW simple example

Posted on 1997-03-11
3
281 Views
Last Modified: 2013-12-26
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.
0
Comment
Question by:gmcgrath
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:Alex Curylo
ID: 1291415
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.
0
 

Expert Comment

by:meeroh
ID: 1291416
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.
0
 
LVL 2

Accepted Solution

by:
AdamS earned 50 total points
ID: 1291417
Yes Yes! Its GUSI, written by Matthias Neeracher. It is an object oriented implementation of sockets on the Mac and it lets you use networking, file access, memory, ADSP, appletalk and PPC domains.

When I ported the MOO (MUD) server and a CUSeeme reflector to the powermac, that was the interface I used.

I remember it uses the SIOW interface for input/output but you can link it in a way so that it only provides what you want out of it.

The web page for it in case you want to download  the latest version:

http://www.ee.ethz.ch/~neeri/macintosh/gusi-qa.html

There is also a mailing list for discussion purposes:
gusi@iis.ee.ethz.ch

Yes, GUSI should have come with your CW disk, but if you have CW8 then you may have an older version of GUSI. The newest is 1.8 and


0

Featured Post

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question