I'm currently working on a small project using Irrlicht and Raknet. It's just to do _something_ in C++, since in my job I'm only working with PHP and Java and I'm afraid that I forget all about C++...

So, my problem is now, how to synch the position and the rotation of a node between server and client. It seems quite straightforward, and for the position it really is. But if I do some client prediction and interpolation on the client I can run into problems, if I send the rotation in degrees. Just imagine: the client's rotation about the x axis is 3 degrees, while the latest snapshot from the server says 358 degrees. In fact this is just a 5 degree difference, but the client (at least in a naive implementation) would try to increase the angle until its 358, instead of decreasing it by 5 degrees.
So what do you do about this? I was thinking about sending front and up vector instead of rotation in degrees, but that would be twice the amount of data...
thx