Subversion Repositories Kolibri OS

Rev

Rev 5769 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5769 Rev 7094
Line 70... Line 70...
70
 FLAG_REUSE_BUFFER is to be used in combination with FLAG_STREAM and will make receive() function re-use the same buffer.
70
 FLAG_REUSE_BUFFER is to be used in combination with FLAG_STREAM and will make receive() function re-use the same buffer.
71
This, for example, can be used when downloading a file straight to disk.
71
This, for example, can be used when downloading a file straight to disk.
Line 72... Line 72...
72
 
72
 
73
 FLAG_BLOCK will make receive() function blocking. This is only to be used when receiving one file from a thread that has no other work.
73
 FLAG_BLOCK will make receive() function blocking. This is only to be used when receiving one file from a thread that has no other work.
74
If however, you want to receive multiple files, or do other things in the program mainloop, 
74
If however, you want to receive multiple files, or do other things in the program mainloop, you should call the receive function periodically.