Solved

TCP/IP sockets in CW simple example

Posted on 1997-03-11
3
252 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
3 Comments
 
LVL 4

Expert Comment

by:Alex Curylo
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 66
List out all word 7 219
Window placement 17 64
Path of Workbook 3 44
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now