You can use MAX_PACKET_SIZE instead of 256 here.