On 07/24/2017 02:05 PM, David Malcolm wrote: > This patch adds a "server" abstract base class for listening > on a port, for use by the later patches to implement an LSP server. > > It's largely adapted from examples in glibc's docs. I suspect that > I've introduced platform-specific assumptions (and that it may need some > extra configure tests for the extra functionality), but this part of > the kit is just a proof-of-concept. > > gcc/ChangeLog: > * Makefile.in (OBJS): Add server.o. > * server.c: New file. > * server.h: New file. And this is where I start to get scared :-) Once folks can start interacting with GCC over a TCP connection we have to start thinking much harder about the security ramifications of various hunks of code.
If we end up going down this path at some point, I'd really like to look for ways to leverage existing code that's already being used in the wild and hopefully has been through real security audits. Jeff