Link two sockets to eachother

Hi, I'm programming a system in C++ which will send messages from a server to an ip-camera (both are connected to the system). What it does now is take the message from the server-socket and puts it in the camera-socket.

The thing is, after that the camera is going to send a video stream which needs to go to the server. Unlike the server-messages, this is a continuous stream, so I can't really take messages out of the camera-socket and put them in the server-socket. What I would really want is to "connect" the camera-socket to the server-socket so that what 'comes out of the camera-socket' goes directly in the server-socket. Is there a nice way to do this? If not, does anyone have an idea how I could handle this?

I'm using TCP sockets and everything is HTTP based btw.

Thanks alot for any help!

What about the sendfile() syscall ?