]> git.ipfire.org Git - thirdparty/strongswan.git/commit
watcher: Add Windows support
authorMartin Willi <martin@revosec.ch>
Thu, 17 Oct 2013 09:56:15 +0000 (11:56 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:52:59 +0000 (15:52 +0200)
commit93f78d82256fd50623048dcb262b147cad85b902
treebe7ae12e8ea0b3dcfdb10c4bb727c3561252bd2b
parentdf0769299adf6ebe2e3cf9317db00ea088a8da9f
watcher: Add Windows support

Instead of a pipe we use a TCP socketpair (can't select() a _pipe()), and
Windsock2 send/recv functions instead of read/write.

Currently supported (and required) are file descriptors provided by Winsock
only; we might use a separate mechanism for traditional file handles if
required (or switch to Windows events and WaitForMultipleObjects) for a future
version.
src/libstrongswan/processing/watcher.c