Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. while (song.read(bytes_buffer, CHUNK_SIZE)
  2. || (readCount = song.gcount()) != 0) {
  3. counter += (readCount == 0) ? CHUNK_SIZE : readCount;
  4. std::cout << song.tellg()<< std::endl;
  5. Send(client_socket, bytes_buffer, CHUNK_SIZE);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement