Fixed some type variance in c# version, now have packet recieving working in the c++ version