BNLSPacketReader bpr = new BNLSPacketReader(bnlsInputStream);
if(bpr.packetId != BNLSPacketId.BNLS_VERSIONCHECKEX2)
throw new IOException("Recieved the wrong packet (" + bpr.packetId.name() + ", but expected BNLS_VERSIONCHECKEX2)");
BNetInputStream bnlsIn = bpr.getInputStream();
int success = bnlsIn.readDWord();
if (success != 1) {
Out.error(getClass(), "BNLS_VERSIONCHECKEX2 Failed\n"
+ HexDump.hexDump(bpr.getData()));
setBNLSConnected(false);
return null;