MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / RRTransConnect

Function RRTransConnect

server/testplugin.cpp:86–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86int RRTransConnect(void *handle, char *receiverName, int port)
87{
88 _vgl_disableFaker();
89
90 int ret = 0;
91 try
92 {
93 VGLTrans *vglconn = (VGLTrans *)handle;
94 if(!vglconn) THROW("Invalid handle");
95 vglconn->connect(receiverName, port);
96 }
97 catch(std::exception &e)
98 {
99 snprintf(errStr, MAXSTR + 14, "Error in %s -- %s", GET_METHOD(e),
100 e.what());
101 ret = -1;
102 }
103
104 _vgl_enableFaker();
105
106 return ret;
107}
108
109
110RRFrame *RRTransGetFrame(void *handle, int width, int height, int format,

Callers

nothing calls this directly

Calls 4

whatMethod · 0.80
_vgl_disableFakerFunction · 0.70
_vgl_enableFakerFunction · 0.70
connectMethod · 0.45

Tested by

no test coverage detected