Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to run a VB program in VC++ Pin
Michael P Butler11-Sep-03 1:37
Michael P Butler11-Sep-03 1:37 
GeneralNeed help with A I programming Pin
Snyp10-Sep-03 13:00
Snyp10-Sep-03 13:00 
GeneralRe: Need help with A I programming Pin
Dangleberry10-Sep-03 22:52
sussDangleberry10-Sep-03 22:52 
GeneralTree control getting grayed Pin
Binayak10-Sep-03 12:47
Binayak10-Sep-03 12:47 
GeneralUsing WS_HSCROLL in a dialog Pin
Marty1020304010-Sep-03 12:44
Marty1020304010-Sep-03 12:44 
GeneralRe: Using WS_HSCROLL in a dialog Pin
cje11-Sep-03 8:59
cje11-Sep-03 8:59 
GeneralRe: Using WS_HSCROLL in a dialog Pin
Marty1020304011-Sep-03 9:35
Marty1020304011-Sep-03 9:35 
GeneralQuestion about sockets… Pin
RobJones10-Sep-03 12:03
RobJones10-Sep-03 12:03 
Hello,
I don’t quite understand how everything works with sockets, and was wondering if someone could clear up a few questions I have.

Dealing with stream sockets.

To make this easier for me to understand I will give you a simple example. Lets say I have a server application and several clients. Lets say one of the clients sends some data to the server.

My first question is - In the server application does the server socket wait until it receives everything from the client before it issues a FD_READ to the application?

Second question, (if the first question is no and I'm sure it is) is there a maximum size that you can send through a socket to ensure that the data isn’t chopped up so that the FD_READ issued is guaranteed to be the full amount of data sent and not part of it?

I have a bad feeling that both the answers to my questions are no and this can make it really difficult to keep track of who sent what especially dealing with lots of clients sending data to the server.

Last but not least can anyone recommend a good WinSock book? I have Network Programming with Windows Sockets by Pat Bonner. It’s pretty good but most of the material deals with one client and one server, and it geared toward WinSock1.

Thanks for taking the time to read my post!!
Rob




Whoever said nothing's impossible never tried slamming a revolving door!
GeneralRe: Question about sockets… Pin
Larry Antram10-Sep-03 12:27
Larry Antram10-Sep-03 12:27 
GeneralRe: Question about sockets… Pin
RobJones10-Sep-03 12:32
RobJones10-Sep-03 12:32 
GeneralRe: Question about sockets… Pin
Larry Antram10-Sep-03 12:55
Larry Antram10-Sep-03 12:55 
GeneralRe: Question about sockets… Pin
Ted Ferenc10-Sep-03 12:37
Ted Ferenc10-Sep-03 12:37 
Generalarrow keys PLEASE HELP!! Pin
Marissa18210-Sep-03 10:59
Marissa18210-Sep-03 10:59 
GeneralRe: arrow keys PLEASE HELP!! Pin
Neville Franks10-Sep-03 11:33
Neville Franks10-Sep-03 11:33 
GeneralQuick Question Regarding Visual C++ .net Pin
Anonymous10-Sep-03 10:24
Anonymous10-Sep-03 10:24 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
Michael Dunn10-Sep-03 10:29
sitebuilderMichael Dunn10-Sep-03 10:29 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
ZoogieZork10-Sep-03 13:15
ZoogieZork10-Sep-03 13:15 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
Anonymous11-Sep-03 5:22
Anonymous11-Sep-03 5:22 
Questionhow to do a dos-like thing in MFC prog Pin
ns10-Sep-03 9:39
ns10-Sep-03 9:39 
AnswerRe: how to do a dos-like thing in MFC prog Pin
David Crow10-Sep-03 9:46
David Crow10-Sep-03 9:46 
AnswerRe: how to do a dos-like thing in MFC prog Pin
Jagadeesh VN10-Sep-03 9:48
Jagadeesh VN10-Sep-03 9:48 
GeneralThanks to you both!!! Pin
ns10-Sep-03 9:55
ns10-Sep-03 9:55 
GeneralRe: Thanks to you both!!! Pin
Ravi Bhavnani10-Sep-03 10:57
professionalRavi Bhavnani10-Sep-03 10:57 
GeneralA simple question from a beginner Pin
xatanu10-Sep-03 9:25
xatanu10-Sep-03 9:25 
GeneralRe: A simple question from a beginner Pin
David Crow10-Sep-03 9:48
David Crow10-Sep-03 9:48 

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.