case Packet.CAPACITY_INFO :
return readPacket(dataIn, capacityInfoReader);
case Packet.CAPACITY_INFO_REQUEST :
return readPacket(dataIn, capacityInfoRequestReader);
case Packet.WIRE_FORMAT_INFO :
WireFormatInfo info = (WireFormatInfo)readPacket(dataIn, wireFormatInfoReader);
if (info != null){
if (info.getVersion() < 3){
throw new IOException("Cannot support wire format version: " + info.getVersion());
}
}
return info;
case Packet.KEEP_ALIVE :