Re: [Plib-devel] Networking Code
Brought to you by:
sjbaker
From: Sam S. <sa...@sp...> - 2000-08-22 14:49:11
|
----- Original Message ----- From: "Ben Woodhead" <be...@bg...> To: <pli...@li...> Sent: Tuesday, August 22, 2000 3:15 PM Subject: RE: [Plib-devel] Networking Code > Thanks, I have that, and I am trying to read through it, but I am new to c > and c++ so you can amagine how fun it is. Luckly, I have some of steves > code, that uses structures in c++ so I have been able to get passed some of > the problems but its not fun. > Thanks for the site. ACE is built upon on single core class ACE_OS, which provides a single Unix/POSIX like interface to all the standard thread and socket calls. This is mostly done in ACE_OS.h as a large bunch of #ifdef's. I haven't really studied it that much, but it might be worthwhile having a look. (One gottcha I should point out is that almost all the higher level ACE applications use recv and send - not read and write (these calls are supposed to be identical), with the result that ACE_OS::read and ACE_OS::write appear to be broken under Win2000 with ACE (This might actually be problems with WinSock under Win2K I haven't investigated)). You could always strip ACE_OS out of ACE (shouldn't be *that* hard), and then you have a bunch of platform independant OS calls for sockets and threads - and ACE supports a *lot* of platforms. Sam |