Got rid of some magic numbers
Updated lossy/lossless packet callback signatures