Switched connection to use packet structs instead of raw data.