On the client side, I create IplImage using openCV and send it as binary data through TCP socket.
IplImage *img = cvCreateImage(cvSize(480, 360), IPL_DEPTH_8U, 4);
After I receive the data on the server, how do it read it and display it?
IplImage *img = ???
cvNamedWindow("image", CV_WINDOW_AUTOSIZE);
cvShowImage("image", img);
cvWaitKey();
cvDestroyWindow("image");