Commit Graph
40 Commits
Author SHA1 Message Date
Henrik Rydgard 1777d9e835 Keep a reference to download objects for their lifetime. Should fix cancelling crashes. 2013-06-26 19:24:49 +02:00
Henrik Rydgard c9e1089261 Very basic download cancellation support. At least doesn't try to download if cancelled during Connect, etc. 2013-06-25 23:27:45 +02:00
Unknown W. Brackets 8c999885d8 Support non-chunked HTTP responses. 2013-06-24 19:40:24 -07:00
Unknown W. Brackets 6c638a5f84 Avoid a CHECK() in Connect(), and invalidate sock(). 2013-06-24 19:39:52 -07:00
Unknown W. Brackets 760c919408 Add a NULL check, even though this is already called via a check. 2013-06-24 19:37:47 -07:00
Henrik Rydgard d37f1254a4 Less CHECKs, more manual error checking and response. 2013-06-22 01:08:57 +02:00
Henrik Rydgard 842590a737 Disable AI_V4MAPPED on all platforms. 2013-06-11 09:30:19 +02:00
Henrik Rydgard dbdcee2d25 Android really dislikes the AI_V4MAPPED flag to getaddrinfo. 2013-06-10 23:20:45 +02:00
Sacha 3a51252fb9 Buildfix for Symbian, Linux. 2013-06-09 22:42:34 +10:00
Sacha 786480b090 Buildfix for Blackberry, Symbian 2013-06-09 22:14:19 +10:00
Henrik Rydgard 2f46baa138 Add "\n" parsing to i18n code. Move some code from Common. 2013-06-09 13:39:16 +02:00
Unknown W. Brackets c448f67b9d Use getaddrinfo() instead of gethostbyname().
The latter is not re-entrant, so not thread-safe.

At the same time, support round-robin DNS in a sort of trivial way.
2013-06-08 19:10:00 -07:00
Henrik Rydgard a509d38357 UI, http with gzip, etc. 2013-06-04 22:32:04 +02:00
Henrik Rydgard 3b9750ee49 Fix a race condition in downloader, some ui style stuff 2013-06-04 22:32:04 +02:00
Henrik Rydgard 2b3e1355ad More UI fixes 2013-06-03 19:59:32 +02:00
Sacha b7a01dc2fe Fix shared_ptr as well. 2013-06-02 22:58:55 +10:00
Sacha 0ef45bd23d Move C++11 functions to std namespace. 2013-06-02 22:25:57 +10:00
Sacha 58c40dabb1 Fix C++11 usage in native with platform-specific hacks. 2013-06-02 13:06:40 +10:00
Henrik Rydgard 4267d9903c More networking and UI stuff 2013-06-01 18:59:31 +02:00
Henrik Rydgard 4a208872c5 Android buildfixing 2013-06-01 00:50:08 +02:00
Henrik Rydgard 21a9fa2645 Merge remote-tracking branch 'origin'
Conflicts:
	native.vcxproj
	native.vcxproj.filters
2013-05-31 23:08:19 +02:00
Henrik Rydgard 5f659ce282 Add some network stuff (background downloader, URL splitter) 2013-05-31 23:04:42 +02:00
lioncash 5f16de6667 Fix a memleak in function DNSResolveTry in resolve.cpp. 2013-05-30 15:08:51 -04:00
Henrik Rydgard 5f000da0e5 Remove bad include sys/endian.h 2013-03-21 23:32:25 +01:00
Henrik Rydgard 9ffb8ca766 htons not available on x86 android on the build server, what? fix. 2013-03-21 23:19:27 +01:00
Henrik Rydgard c4b6067eeb Attempt at android build fix on the build server (old ndk?) 2013-03-21 22:50:24 +01:00
Todd Christensen dff0ac5669 Buildfix. 2013-03-04 16:10:46 -08:00
oioitff 4ee889c025 Use a custom inet_pton and avoid inet_ntoa for now.
When/if ipv6 is needed we can fix inet_ntop.
2013-03-04 14:48:18 -08:00
Unknown W. Brackets 8611631555 Allow http::Client::POST() to specify the content-type. 2013-03-01 00:04:42 -08:00
Unknown W. Brackets 19d3ce79ed Don't exit(1) on DNS resolution failure. 2013-02-28 23:59:32 -08:00
Unknown W. Brackets 6680469821 Include the User-Agent header in HTTP requests. 2013-02-28 23:39:35 -08:00
Unknown W. Brackets 3030c2a914 Fix http::Client::POST() on Windows.
Was using write() not send(), also was missing Host header.
2013-02-28 23:38:55 -08:00
Sacha 965c93411f Symbian support for project.
Also, check if 24-bit depth is supported and use it (when packed stencil isn't provided). VideoCore III and VideoCore IV used in Symbian, Android and Raspberry Pi require this as they only support 24-bit depth, 8-bit stencil.
2012-12-13 14:39:44 +10:00
Kovensky b17119f2c6 Fixes for compatibility with FreeBSD
backtrace.cpp assumes that anything non-windows is linux.

stb_vorbis.c includes malloc.h which has been deprecated since the 90s
on all implementations other than MSVC.

The stat64 hack in file_util.cpp is only needed on linux.

http_client.h also assumes non-windows is linux.
2012-11-18 21:41:44 -03:00
Henrik Rydgård 5a5f599e1b Reindent (->tabs) 2012-10-30 13:20:55 +01:00
Henrik Rydgard e64a159407 basic events 2012-08-08 00:10:34 +02:00
Henrik Rydgard 5a6622eb37 Redo the DPI/Density code. It now makes sense. 2012-07-15 17:04:27 +02:00
Henrik Rydgard 4a6bc60ea8 warnin fixin 2012-07-09 01:11:18 +02:00
Henrik Rydgard 26da3ea198 mac fixes 2012-07-05 23:42:47 +02:00
Henrik Rydgard 5dbea73016 Add some old HTTP client code, just for kicks. 2012-06-03 19:01:08 +02:00