diff options
author | David 'Digit' Turner <digit@android.com> | 2010-12-22 22:30:20 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-01-02 22:03:35 +0100 |
commit | c611a19e65c13248bfd881a2d30681d7e24ea773 (patch) | |
tree | b18b45188262f7fd4314ed7d53576c63d9d2839a | |
parent | 799d973af6df48d62712c3335e2cdf2d8a259718 (diff) | |
download | external_qemu-c611a19e65c13248bfd881a2d30681d7e24ea773.zip external_qemu-c611a19e65c13248bfd881a2d30681d7e24ea773.tar.gz external_qemu-c611a19e65c13248bfd881a2d30681d7e24ea773.tar.bz2 |
sockets.h: Add SOCKET_LIST_DGRAM
Change-Id: Ifc00b12403a105307fa12d14a52c6566094ba7c0
-rw-r--r-- | sockets.c | 3 | ||||
-rw-r--r-- | sockets.h | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -750,6 +750,9 @@ sock_address_list_create( const char* hostname, else ai.ai_flags |= AI_CANONNAME; + if (flags & SOCKET_LIST_DGRAM) + ai.ai_socktype = SOCK_DGRAM; + while (1) { struct addrinfo hints = ai; @@ -258,7 +258,8 @@ int sock_address_get_numeric_info( SockAddress* a, enum { SOCKET_LIST_PASSIVE = (1 << 0), SOCKET_LIST_FORCE_INET = (1 << 1), - SOCKET_LIST_FORCE_IN6 = (1 << 2) + SOCKET_LIST_FORCE_IN6 = (1 << 2), + SOCKET_LIST_DGRAM = (1 << 3), }; /* resolve a host and service/port name into a list of SockAddress objects. |