| 2029 | } |
| 2030 | |
| 2031 | SectionProperties RemoteServer::GetSectionProperties(int index) |
| 2032 | { |
| 2033 | if(!Connected()) |
| 2034 | return SectionProperties(); |
| 2035 | |
| 2036 | { |
| 2037 | WRITE_DATA_SCOPE(); |
| 2038 | SCOPED_SERIALISE_CHUNK(RemoteServerPacket::GetSectionProperties); |
| 2039 | SERIALISE_ELEMENT(index); |
| 2040 | } |
| 2041 | |
| 2042 | SectionProperties props; |
| 2043 | |
| 2044 | { |
| 2045 | READ_DATA_SCOPE(); |
| 2046 | RemoteServerPacket type = ser.ReadChunk<RemoteServerPacket>(); |
| 2047 | |
| 2048 | if(type == RemoteServerPacket::GetSectionProperties) |
| 2049 | { |
| 2050 | SERIALISE_ELEMENT(props); |
| 2051 | } |
| 2052 | else |
| 2053 | { |
| 2054 | RDCERR("Unexpected response to GetSectionProperties"); |
| 2055 | } |
| 2056 | |
| 2057 | ser.EndChunk(); |
| 2058 | } |
| 2059 | |
| 2060 | return props; |
| 2061 | } |
| 2062 | |
| 2063 | bytebuf RemoteServer::GetSectionContents(int index) |
| 2064 | { |
no test coverage detected