This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: daemon


On Thu, Sep 13, 2001 at 07:57:12PM +1000, Robert Collins wrote:
> The daemon is coming long nicely. I've a nearly complete transport layer
> class, with a factory and virtual methods, to encapsulate all the
> security impersonation and handshaking needed, allowing us to focus on
> the daemon for now, or the transport or both.
> 
> However, I have a little question.
> 
> I want to use the same class inside and outside cygwin, for consistency,
> and to prevent skew problems. The issue is that things like accept()
> outside of cygwin are fine, but in cygwin you need to use
> cygwin_accept().
> 
> So... is there someway to resolve that, without compiling the source
> file twice (which is one way) or having a symlink to the source under a
> different name (ugly IMO)?

Perhaps a header file which takes __INSIDE_CYGWIN__ into account?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]