Networking (hopefully) Fully Functional!
We finally managed to work out how to fix the problem. The server now receives the pipe correctly! What I believe the problem was is that we were not using the data() from the packet that needs to be sent, so the only thing the server was receiving correctly was the type. We were probably passing the pointer by accident, which obviously will not work.