More I/O help

This is a discussion on More I/O help within the C++ Programming forums, part of the General Programming Boards category; I was trying to make a p2p app and wanted to know how to loaded part of a file into ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    7

    More I/O help

    I was trying to make a p2p app and wanted to know how to loaded part of a file into a buffer then send it, since u cant send it all at once. like make packets.

  2. #2
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    If you want to limit the size of a single transmission, just read the number of bytes you want, send, and continue in a loop until you've read and transmitted all of the file. It's quite straightforward.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. asynchronized I/O == multiplexing I/O?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 07-24-2006, 10:06 AM
  2. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 07:42 AM
  3. Nonblocking I/O
    By fnoyan in forum Linux Programming
    Replies: 4
    Last Post: 11-29-2005, 03:37 PM
  4. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 04:14 PM
  5. WSAAsyncSelect I/O Mode :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 05-12-2002, 03:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21