Example #1
0
 internal static int ReadRegionTableResponse(Socket socket, out RegionTable table)
 {
     using (KVMemoryStream stream = ReadResponse(socket))
     {
         int len     = stream.ReadInt();
         int type    = stream.ReadInt();
         int retCode = stream.ReadInt();
         if (retCode == ProtocolCode.Success)
         {
             table = DecoderUtil.decodeRegionTable(stream);
         }
         else
         {
             table = null;
         }
         return(retCode);
     }
 }