setsockopt: Add support for timeouts on W32
authorMartin Lambers <marlam@marlam.de>
Tue, 3 Feb 2009 06:30:20 +0000 (07:30 +0100)
committerSimon Josefsson <simon@josefsson.org>
Sun, 1 Mar 2009 16:38:26 +0000 (17:38 +0100)
commita8ccc7e88310f9187a1655a9969da3ae007e2aa3
tree22b92202448f0968c671c956e44944d4a1fab6c1
parent3e4151d4339192f004275caa3b3de921a8575fb9
setsockopt: Add support for timeouts on W32

Provide POSIX semantics for socket timeout options on W32.
 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
 * modules/setsockopt: Depend on sys_time module for struct timeval.
 * modules/getsockopt: Depend on sys_time module for struct timeval.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
lib/getsockopt.c
lib/setsockopt.c
modules/getsockopt
modules/setsockopt