if( typePacket.equals(SCPHeader.AUTHENTICATION) ||
typePacket.equals(SCPHeader.KEEP_ALIVE) ||
typePacket.equals(SCPHeader.HTTP_REQUEST_RESPONSE) ||
typePacket.equals(SCPHeader.HTTPS_REQUEST_RESPONSE)) {
SCPHeader header = new SCPHeader(bufferHeader);
int totalSizeOfPacket = SCPHeader.SIZE_OF_HEADER;
totalSizeOfPacket +=
header.getSizeOfDatablock();
byte[] buffer = new byte[totalSizeOfPacket];
System.arraycopy(bufferHeader, 0, buffer,
0, SCPHeader.SIZE_OF_HEADER);