summaryrefslogtreecommitdiff
path: root/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-05-03 16:21:12 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-05-03 16:21:12 +0200
commit892a6306e73f4ae1aeeb38387637412ddb7e6632 (patch)
treebe5abad2018261f2399669aff17588ee1f7eac9e /tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp
parent7b73c9f1d3dc4107037d5f8e06be8b302ed6f4fb (diff)
emulator: opengl: Use QEMU pipe.
This patch modifies the guest libraries to use the new fast qemu "opengles" pipe to communicate with the host renderer process. Note that the renderer is still listening on a TCP socket on port 22468. Change-Id: I6ab84f972a8024e1fdababa4615d0650c8d461bf Conflicts: tools/emulator/opengl/tests/gles_android_wrapper/Android.mk tools/emulator/opengl/tests/gles_android_wrapper/ServerConnection.h
Diffstat (limited to 'tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp')
-rw-r--r--tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp b/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp
index fdccc1533..e774c62fe 100644
--- a/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp
+++ b/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp
@@ -134,7 +134,7 @@ int TcpStream::writeFully(const void *buf, size_t len)
if (stat < 0) {
if (errno != EINTR) {
retval = stat;
- ERR("TcpStream::writeFully failed, errno = %d\n", errno);
+ ERR("TcpStream::writeFully failed: %s\n", strerror(errno));
break;
}
} else {
@@ -161,7 +161,7 @@ const unsigned char *TcpStream::readFully(void *buf, size_t len)
if (errno == EINTR) {
continue;
} else {
- ERR("TcpStream::readFully failed, errno = %d 0x%x \n", errno,buf);
+ ERR("TcpStream::readFully failed (buf 0x%x): %s\n", buf, strerror(errno));
return NULL;
}
} else {