aboutsummaryrefslogtreecommitdiffstats
path: root/sockets.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed compilation error with new x86_64-w64-mingw32 compilerAndrew Hsieh2012-05-021-27/+28
| | | | | | | | | | | | | | | | | | | | | | Fixed the following for the new compiler 1. android/camera/camera-capture-windows.c: Added "#include <windows.h>" 2. SetClassLong() is deprecated. GCL_HICON doesn't exist in _WIN64. Replacted it with SetClassLongPtr(h, GCLP_HICON, icon) 3. [v]asprintf now actually exisit in libray. Changed the prototype to match the standard ones but will remove them later for GCC 4.5 and up. 4. Renamed _set_errno to set_errno because it exists in stdlib.h. Renamed _fix_errno to fix_errno for consistency. 5. EAI_NODATA and EAI_NONAME become the same things. 6. ddk/*h don't exisit. tap-win32.c actually only needs winioctl.h which provide constants. I have make sure they got the same constants in both old and new mingw compilers 7. #undef DELETE before redefining it for KEY_CODE in hw-events.h because DELETE is defined to be a constant in standard header. The above don't break the old one (ie. /usr/bin/i586-mingw32msvc-*) Change-Id: Ic7d13fd0fd237d433f923ee01c6ce50f5c02f095
* Quote concatenated QEMU options when -verbose is used.David 'Digit' Turner2011-03-011-1/+1
| | | | Change-Id: I2d95fa0aa9a5f679372dfd1ae7c7cec906c3049d
* sockets.h: Add SOCKET_LIST_DGRAMDavid 'Digit' Turner2011-01-021-0/+3
| | | | Change-Id: Ifc00b12403a105307fa12d14a52c6566094ba7c0
* Implement sock_address_list_create2 routine.Vladimir Chtchetkine2010-11-241-0/+27
| | | | | | This routine takes socket address in the form of [host:]port and creates array of SockAddress for it. Change-Id: Ib2d4c1035d109d9d3df100961c4eec728d15e485
* emulator-ui: Remove dependencies from qemu sources.David 'Digit' Turner2010-10-191-5/+5
| | | | | | This change removes some QEMU-specifics that crept into the UI code. Change-Id: Ib1974dc64e54a35dc0cd01aec1eb547a9263a0c8
* Remove compiler warnings when building the emulator.David 'Digit' Turner2010-09-221-26/+24
| | | | | | | This forces -Wall during the build. Note that this patch doesn't remove all warnings, but most of the remaining ones are from upstream anyway. Change-Id: I8808d8495e99866e156ce5780d2e3c305eab491f
* Fix stack-smashing when using IPv6 sockets in the networking code.David 'Digit' Turner2010-08-251-46/+38
| | | | | | | struct sockaddr is not enough, and struct sockaddr_storage is not portable, so redefine our own union to deal with the problem correctly. Change-Id: Ib250da3e7bafef2d05c060ea61272720576994cb
* Fix Win32 socket error handling.David 'Digit' Turner2010-03-251-7/+13
| | | | | | This also fixes -http-proxy support on Windows. Change-Id: I741b224511c064412ac39351ed4f1b9146a313a5
* Enable sockets.c to compile with GCC 4.4 headersJack Palevich2009-09-151-1/+8
| | | | | | | | | The GCC 4.4 version of netdb.h moves EAI_NODATA behind a __USE_GNU define, because that feature is not part of the POSIX standard for that header. In order to compile sockets.c without error under GCC 4.4 we explicitly define __USE_GNU and explicitly include netdb.h.
* Merge upstream QEMU 10.0.50 into the Android source tree.David 'Digit' Turner2009-09-141-8/+196
| | | | | | | | | | | | | | | | | | | This change integrates many changes from the upstream QEMU sources. Its main purpose is to enable correct ARMv6 and ARMv7 support to the Android emulator. Due to the nature of the upstream code base, this unfortunately also required changes to many other parts of the source. Note that to ensure easier integrations in the future, some source files and directories that have heavy Android-specific customization have been renamed with an -android suffix. The original files are still there for easier integration tracking, but *never* compiled. For example: net.c net-android.c qemu-char.c qemu-char-android.c slirp/ slirp-android/ etc... Tested on linux-x86, darwin-x86 and windows host machines.
* Fix bad zero-termination bug in the socket string formatter.David 'Digit' Turner2009-07-101-6/+9
| | | | | This created, among other things, malformed CONNECT proxy requests, depending on the state of the stack
* Fix one minor crashing bug when -debug-audio is used with the OSS audio backend.David 'Digit' Turner2009-05-201-1/+4
| | | | Moreover, properly set errno to 0 in QSOCKET_CALL macro, to avoid misleading trace messages when -debug-slirp is used
* This fixes sock_address_init_resolv() to properly parse the linked-list ↵David 'Digit' Turner2009-05-141-11/+59
| | | | | | | | | | | | | returned by getaddrinfo(). The previous implementation simply took the first entry, which could be an IPv6 address instead of an IPv4 one in certain OS setups. This created problems when "localhost" resolved to :::1 instead of 127.0.0.1. For example, when implementing inter-emulator telephony or SMS, since the caller would try to connect to localhost:5556, which was resolved to :::1:5556 while the received is listening on 127.0.0.1:5556 Also disable debugging traces that should not be activated. And make the error messages in sockets.c only dumped to the terminal when -debug-socket is active.
* Fix build for platforms where deprecated symbol EAI_NODATA is not defined.Nick Pelly2009-04-241-0/+2
|
* AI 145975: am: CL 145805 Fix a bug in android/console.c that prevented the ↵David Turner2009-04-131-2/+23
| | | | | | | | | | console "redir add" command from working properly Fix a bug in sock_address_init_resolve which caused a crashed when getaddrinfo() returned an error. Original author: digit Merged from: //branches/cupcake/... Automated import of CL 145975
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+1269
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-1269/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-4/+30
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-200/+926
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+68
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+449