Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (song.read(bytes_buffer, CHUNK_SIZE)
- || (readCount = song.gcount()) != 0) {
- counter += (readCount == 0) ? CHUNK_SIZE : readCount;
- std::cout << song.tellg()<< std::endl;
- Send(client_socket, bytes_buffer, CHUNK_SIZE);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement