Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Winsock End-of-Message Response :: Winsock Pin
Taka Muraoka22-Dec-02 18:49
Taka Muraoka22-Dec-02 18:49 
kuphryn wrote:
What is the best solution to knowing when a server or client has sent the final piece of data across a socket?

You need to build it into the protocol the two apps are using to communicate e.g. the first 4 bytes sent are not data but the #bytes to follow.

kuphryn wrote:
Is it true that web servers sends the final piece of data with something ike this at the end?

Again, it depends on the particular protocol being used. For HTTP, I just wait until the server closes the connection which gives me an error when I call WSARecv(). A bit hacky but since HTTP is stateless, I can't think of a reason why the server would ever want to keep the connection open and so this should be OK.




he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)

Awasu v0.4a[^]: A free RSS reader with support for Code Project.

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 
GeneralRe: Moving Cursor position in Edit box ! Pin
Stan Shannon22-Dec-02 2:42
Stan Shannon22-Dec-02 2:42 

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.