[C++] Emulator of POSIX Socket for Carbon and Classic

Andreas Grosam agrosam at computerworks.ch
Tue Mar 11 13:56:05 CST 2003



On Dienstag, 11. März 2003, Ruslan Zasukhin <sunshine at public.kherson.ua> wrote:
>on 3/11/03 12:32 PM, Andreas Grosam at agrosam at computerworks.ch
>wrote:
>
>> Hi Ruslan,
>> 
>> GUSI is indeed the most advanced "POSIX wrapper" for MacOS. It is well written
>> and robust.
>> As you mentioned, the original version from Matthias Neeracher is not
>> Carbonized. However, the PYTHON Guys have made efforts for carbonizing it.
>> 
>> There is a library, which you can download from the PYTHON sites:
>> http://www.cwi.nl/ftp/jack/python/mac
>> 
>> Please note however, that there are several issues with a carbonized GUSI and
>> in particular when using carbonized GUSI on MacOS X (if it is even possible).
>> 
>> If you have certain questions regarding the carbonization you should address
>> the Python people.
>
>Thank you Andreas!
>
>I have found that CW's PowerPlant have good network classes.

A library used for the client does not necessarily need the same underlaying implementation as the server. So yes, it would be possible to use the PowerPlant threads and network classes.

Neverthless, for the server I would prefere the POSIX API - either as the direct API or through a more abstract API which uses POSIX as the underlaying implementation (among others, for Windows for instance). This offers more portability.

However, since PowerPlant is a "proprietary" API a lot of other classes working with POSIX and PTHREADS will no longer be re-usable for that client-library.

You should also consider a possibility for the application developer to design a threaded application architecture. That means, the client library needs to take this into account.

Probably, you need a client library running for CFM and Mach-O - so PP should compile under Mach-O. In any case, PP is based on Carbon which only supplies Cooperative threads.
In that case, there might arise conflicts when the app developer uses preemptive threads in his application - eg. using the POSIX API directly. Don´t assume, the application developer only wants to create a PP application - why not a Mach-O console program using POSIX API?  :) 


>
>And it seems they have few times less code,
>This is important for Client.

The GUSI example "Server" and "Client" take about 250KByte. I do not consider this to be big - but OK, this adds about 200K of code.

>
>And yes. They must work find on Carbon and Classic.
>
>So I try to see if I can use them.
>
>-- 
>Best regards,
>Ruslan Zasukhin      [ I feel the need...the need for speed ]
>-------------------------------------------------------------
>e-mail: ruslan at paradigmasoft.com
>web: http://www.paradigmasoft.com
>
>To subscribe to the Valentina mail list go to:
>http://listserv.macserve.net/mailman/listinfo/valentina
>-------------------------------------------------------------
>
>_______________________________________________
>Valentina mailing list
>Valentina at lists.macserve.net
>http://lists.macserve.net/mailman/listinfo/valentina
>




More information about the Valentina mailing list