emulator: opengl: Support named pipes on Win32
This patch adds support for Win32 named pipes for the communication channel between the Opengl renderer library and its clients. Named pipes should be much faster than local TCP sockets on this platform. Note that by default, TCP sockets are still used. The emulator needs to call setStreamMode(STREAM_MODE_PIPE) to be able to use these. Change-Id: I86d36624cf2b7fdd50f41e1e43c908348dca4657
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
*/
|
||||
#include "RenderServer.h"
|
||||
#include "TcpStream.h"
|
||||
#ifndef _WIN32
|
||||
#ifdef _WIN32
|
||||
#include "Win32PipeStream.h"
|
||||
#else
|
||||
#include "UnixStream.h"
|
||||
#endif
|
||||
#include "RenderThread.h"
|
||||
@@ -43,9 +45,9 @@ RenderServer *RenderServer::create(int port)
|
||||
server->m_listenSock = new TcpStream();
|
||||
} else {
|
||||
#ifdef _WIN32
|
||||
server->m_listenSock = new TcpStream();
|
||||
server->m_listenSock = new Win32PipeStream();
|
||||
#else
|
||||
server->m_listenSock = new UnixStream();
|
||||
server->m_listenSock = new UnixStream();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user