Single execution bug fixed
This commit is contained in:
parent
7c82a38458
commit
f818ee1e0d
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ int main() {
|
||||||
std::cout << "HTTP/1.1 200 OK\nConnection: close\nContent-Type: video/x-flv\n\n";
|
std::cout << "HTTP/1.1 200 OK\nConnection: close\nContent-Type: video/x-flv\n\n";
|
||||||
while(true) {
|
while(true) {
|
||||||
msg = mySocket.recv(&buffer[0],10000);
|
msg = mySocket.recv(&buffer[0],10000);
|
||||||
|
if (!std::cout.good()) { exit(0); }
|
||||||
std::cout.write(buffer,msg);
|
std::cout.write(buffer,msg);
|
||||||
}
|
}
|
||||||
// disconnect
|
// disconnect
|
||||||
|
|
Loading…
Add table
Reference in a new issue