Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPackaging my vc app Pin
r i s h a b h s22-Dec-02 17:42
r i s h a b h s22-Dec-02 17:42 
GeneralRe: Packaging my vc app Pin
Michael Dunn22-Dec-02 17:59
sitebuilderMichael Dunn22-Dec-02 17:59 
GeneralRe: Packaging my vc app Pin
r i s h a b h s22-Dec-02 18:06
r i s h a b h s22-Dec-02 18:06 
GeneralAdding files to existing project Pin
stv22-Dec-02 16:24
stv22-Dec-02 16:24 
GeneralRe: Adding files to existing project Pin
Taka Muraoka22-Dec-02 16:40
Taka Muraoka22-Dec-02 16:40 
GeneralInternet Pin
Steven M Hunt22-Dec-02 16:24
Steven M Hunt22-Dec-02 16:24 
GeneralRe: Internet Pin
Todd Smith22-Dec-02 16:28
Todd Smith22-Dec-02 16:28 
GeneralWinsock End-of-Message Response :: Winsock Pin
valikac22-Dec-02 15:10
valikac22-Dec-02 15:10 
Hi.

What is the best solution to knowing when a server or client has sent the final piece of data across a socket?

For example, let say a client sends 100k of data to a server running OVERLAPPED I/O. The I/O model updates the server and tells it there is 50k data ready for to be received. The server calls WSARecv(). Meanwhile the server has not idea the true size of the data. It just knows there is 50k worth of the data. Now OVERLAPPED I/O updates the server the second time with 50k data, which is the last piece of data.

Based on the example scenario, how does the server know when to stop calling WSARecv() because it has processed all data? This is a general question and does not pertain to data. Is it true that web servers sends the final piece of data with something ike this at the end?

-----

0
-----

Thanks,
Kuphryn
GeneralRe: Winsock End-of-Message Response :: Winsock Pin
Taka Muraoka22-Dec-02 18:49
Taka Muraoka22-Dec-02 18:49 
GeneralRe: Winsock End-of-Message Response :: Winsock Pin
valikac22-Dec-02 19:45
valikac22-Dec-02 19:45 
GeneralOpen in IE Pin
ErosLin22-Dec-02 14:31
ErosLin22-Dec-02 14:31 
GeneralRe: Open in IE Pin
Chris Richardson23-Dec-02 9:28
Chris Richardson23-Dec-02 9:28 
GeneralCPropertyPage Default Button Pin
User 1278222-Dec-02 13:38
User 1278222-Dec-02 13:38 
GeneralFile problem Pin
Zuu1022-Dec-02 6:09
Zuu1022-Dec-02 6:09 
GeneralRe: File problem Pin
Chris Losinger22-Dec-02 6:13
professionalChris Losinger22-Dec-02 6:13 
GeneralRe: File problem Pin
Zuu1022-Dec-02 6:14
Zuu1022-Dec-02 6:14 
GeneralRe: File problem Pin
S O S22-Dec-02 21:33
S O S22-Dec-02 21:33 
GeneralRe: File problem Pin
Christian Graus22-Dec-02 11:23
protectorChristian Graus22-Dec-02 11:23 
GeneralCVS Pin
monrobot1322-Dec-02 6:08
monrobot1322-Dec-02 6:08 
GeneralRe: CVS Pin
Dan Dimerman22-Dec-02 6:15
Dan Dimerman22-Dec-02 6:15 
GeneralRe: CVS Pin
Stuart Dootson22-Dec-02 10:30
professionalStuart Dootson22-Dec-02 10:30 
GeneralRe: CVS Pin
Victor Boctor22-Dec-02 13:11
Victor Boctor22-Dec-02 13:11 
GeneralClose pop-up menu Pin
comrade22-Dec-02 4:48
comrade22-Dec-02 4:48 
GeneralRe: Close pop-up menu Pin
Gary R. Wheeler22-Dec-02 5:09
Gary R. Wheeler22-Dec-02 5:09 
GeneralMoving Cursor position in Edit box ! Pin
Hadi Rezaee22-Dec-02 2:03
Hadi Rezaee22-Dec-02 2:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.