public P2PMessage(P2PVersion ver) { version = ver; if (ver == P2PVersion.P2PV1) { header = new P2Pv1Header(); } else if (ver == P2PVersion.P2PV2) { header = new P2Pv2Header(); } }