[ale] Ms -> Linux porting pointer sought

Jason Day jasonday at worldnet.att.net
Thu May 15 15:04:39 EDT 2003


On Thu, May 15, 2003 at 11:06:44AM -0400, John Mills wrote:
> That's what I'm doing. Numeric types have not been a problem to define,
> but I'm looking for *nix synonyms for generic 'HANDLE' (U16, I guess?)  
> and 'SOCKET'. I don't have much in the way of MsWin examples to look at, 
> compared to all the *nix sources. I admit to being 'Windows challenged'.

I'm not sure about HANDLE, but a socket is just an int in unix.  In my
own code, I usually just #define SOCKET int, if it's not defined
already.

As for source code, have a look at the freeamp project (just google for
freeamp).  It's a cross-platform mp3 player, so it has a broad sample of
code, including UI, sockets, http, streaming, threads, etc.

HTH,
Jason
-- 
Jason Day                                       jasonday at
http://jasonday.home.att.net                    worldnet dot att dot net
 
"Of course I'm paranoid, everyone is trying to kill me."
    -- Weyoun-6, Star Trek: Deep Space 9
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list