Open komalpharate opened 6 years ago
Hi,
Yes, you can.
Just type URL like this in the browser:
http://ip-address:8090
Thanks for the reply. But want to run socket client on another machine. This client will get the output stream and display the stream in its browser.
To be more clear. My socket client is in Nodejs. Running on another VM. This VM will listen to Jetson's socket server. And display the stream wherever it wants
What error do you get?
As I said, The setup http://ip-address:8090 on machines which are in network or http://localhost/8090 on Jetson works for me. Now, I want to connect to socket server hosted on Jetson. Socket client in nodejs. What is the topic I should listen on?
@AlexeyAB Hello!
I apologize, could not answer my question? What does this piece of code answer? I get an error cerr << "error : couldn't accept connection on sock " << sock << " !" << endl;
during streaming. Thank you!
it's here
if (client == SOCKET_ERROR)
{
cerr << "error : couldn't accept connection on sock " << sock << " !" << endl;
return false;
}
@AshleyRoth
https://github.com/AlexeyAB/darknet/blob/24c889d85705643ca4860dea88827a7f1893b731/src/http_stream.cpp#L37 https://github.com/AlexeyAB/darknet/blob/24c889d85705643ca4860dea88827a7f1893b731/src/http_stream.cpp#L156-L160
Just read cases when accept() returns -1: http://man7.org/linux/man-pages/man2/accept.2.html#RETURN_VALUE
@AlexeyAB was read. So, it was a connection problem? if communication with the server / client is lost
@AshleyRoth This is problem (connection lost,...) when the new client try to connect to the Darknet.
@AlexeyAB The problem of the unstable connection between the darknet and the client, I correctly understood?
@AshleyRoth yes - in most cases
@AlexeyAB Okay, thanks! Last question, how many clients can connect to a darknet at the same time? Are there any restrictions in quantity?
Hi, I tried http_stream.cpp and http_stream.h. Works good on local setup. Can I use the same setup to stream over socket to another machine?