Added BCAST constant to packetcodec.py and changed demo scripts to use it.