I want to create a streaming connection from client to server using libcurl. The client will once connect to server and keep listening for responses from the server. Stream teardown can happen when client requests.
Example:
- Connect to server
- Keep listening for responses to server. Something like
while(streamOK){ //execute function when response arrives}
- Teardown connection when
CloseStream()
invoked.
I have gone through libcurl but couldn't find a clear implementation of streaming connection except rtsp one.