| 84 | |
| 85 | |
| 86 | int 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 | |
| 110 | RRFrame *RRTransGetFrame(void *handle, int width, int height, int format, |
nothing calls this directly
no test coverage detected