MCPcopy Create free account
hub / github.com/baldurk/renderdoc / Ping

Method Ping

renderdoc/core/remote_server.cpp:1482–1511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1480}
1481
1482ResultDetails RemoteServer::Ping()
1483{
1484 RDResult ret;
1485
1486 if(!Connected())
1487 {
1488 ret = ResultCode::RemoteServerConnectionLost;
1489 return ret;
1490 }
1491
1492 {
1493 WRITE_DATA_SCOPE();
1494 SCOPED_SERIALISE_CHUNK(RemoteServerPacket::Ping);
1495 }
1496
1497 RemoteServerPacket type;
1498
1499 {
1500 READ_DATA_SCOPE();
1501 type = ser.ReadChunk<RemoteServerPacket>();
1502 ser.EndChunk();
1503 }
1504
1505 if(type == RemoteServerPacket::Ping)
1506 ret = ResultCode::Succeeded;
1507 else
1508 ret = ResultCode::RemoteServerConnectionLost;
1509
1510 return ret;
1511}
1512
1513rdcarray<rdcstr> RemoteServer::LocalProxies()
1514{

Callers 2

PingRemoteMethod · 0.45
ping_remoteFunction · 0.45

Calls 1

EndChunkMethod · 0.80

Tested by

no test coverage detected