> Hmm, what if getaddrinfo was used directly as an extern proc in the Net > module code instead of through a wrapper in sys.c? Though that would be > an issue on systems without a getaddrinfo. We'd be able to handle that > if it was possible to have conditional compilation of Chapel code > depending on the OS type. Is there a pragma for that?
There isn't such a pragma or capability at present which may be why Michael wrapped it... Such switching between C-level mechanisms is typically done at the C level rather than the Chapel level. E.g., imagine providing a #define or static inline function reproducing getaddrinfo() capabilities on systems that don't support it. I'm not enough of a network programmer to comment on the rest of this thread so will leave that for others. :) -Brad ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Chapel-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-developers
