diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:43:59 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:43:59 -0800 |
commit | c27f813900a3c114562efbb8df1065e94766fc48 (patch) | |
tree | d95919283707dcab61009e27007374a745c9541e /telephony/sysdeps_qemu.c | |
parent | 0852ad57fa372f9b2854e4df685eaba8d8ef6790 (diff) | |
download | external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.zip external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.tar.gz external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.tar.bz2 |
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'telephony/sysdeps_qemu.c')
-rw-r--r-- | telephony/sysdeps_qemu.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/telephony/sysdeps_qemu.c b/telephony/sysdeps_qemu.c index 39d966e..ec0b3f5 100644 --- a/telephony/sysdeps_qemu.c +++ b/telephony/sysdeps_qemu.c @@ -11,7 +11,17 @@ */ #include "sockets.h" #include "sysdeps.h" -#include "vl.h" +#include "qemu-timer.h" +#ifdef _WIN32 +#include <winsock2.h> +#else +#include <sys/socket.h> +#include <sys/select.h> +#include <sys/types.h> +#include <netinet/in.h> +#include <netinet/tcp.h> +#include <netdb.h> +#endif #define DEBUG 1 @@ -337,7 +347,7 @@ sys_channel_create_tcp_handler( SysChannel server_channel ) } /* disable Nagle algorithm */ - socket_set_lowlatency( channel->fd ); + socket_set_nodelay( channel->fd ); D( "%s: handler %p:%d created from server %p:%d\n", __FUNCTION__, server_channel, server_channel->fd, channel, channel->fd ); @@ -359,7 +369,7 @@ sys_channel_create_tcp_client( const char* hostname, int port ) /* set to non-blocking and disable Nagle algorithm */ socket_set_nonblock( channel->fd ); - socket_set_lowlatency( channel->fd ); + socket_set_nodelay( channel->fd ); return channel; } |