unixctl: Add support for Windows.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 28 Mar 2014 15:19:59 +0000 (08:19 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 28 Mar 2014 18:09:26 +0000 (11:09 -0700)
commitcb54a8c57646a1549dcff0c2ad4c2d8b46bc2880
tree9cb9e6afa80b2ffae97e5e87bbc5f3faada50edd
parent508caab4ac3300f4023ce8650a5e2a40bc91d4c7
unixctl: Add support for Windows.

For Windows, use a kernel assigned localhost TCP port to listen for
runtime management connections and then write it into a file
so that a client can read it and then make a TCP connection.

Since we do not have the infrastructure to create pidfiles on
windows as of now, we create the *.ctl file without a pid. This
should be okay since we use different OVS_RUNDIR when we run
multiple copies of a daemon.

We do not generate man pages on Windows. But we still update them
for Windows so that anyone can read it elsewhere. Since we do not
generate it directly, we cannot dynamically show the configured
OVS_RUNDIR in windows. So, I have a not so nice \fIOVS_RUNDIR\fR
in the man page.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/unixctl.c
lib/unixctl.man