Optimised out some unnecessary memory allocations, and packet length checks are now more appropriate for each socket (ideally shouldn't need to allocate mem per socket for it, but it's good for now).