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

C / C++ / MFC

 
GeneralRe: PostMessage problem Pin
tataxin24-Jun-08 14:46
tataxin24-Jun-08 14:46 
Questionwhat ALL gets created by an empty class? (c++) Pin
dd31415923-Jun-08 8:27
dd31415923-Jun-08 8:27 
AnswerRe: what ALL gets created by an empty class? (c++) Pin
David Crow23-Jun-08 9:00
David Crow23-Jun-08 9:00 
GeneralRe: what ALL gets created by an empty class? (c++) Pin
dd31415923-Jun-08 9:31
dd31415923-Jun-08 9:31 
AnswerRe: what ALL gets created by an empty class? (c++) Pin
Jijo.Raj23-Jun-08 9:06
Jijo.Raj23-Jun-08 9:06 
GeneralRe: what ALL gets created by an empty class? (c++) Pin
dd31415923-Jun-08 9:31
dd31415923-Jun-08 9:31 
QuestionHELP WITH WINSOCK PROGRAMMING Pin
bodhi201623-Jun-08 8:25
bodhi201623-Jun-08 8:25 
AnswerRe: HELP WITH WINSOCK PROGRAMMING Pin
bulg23-Jun-08 11:55
bulg23-Jun-08 11:55 
I don't know if you're trying to use UDP or TCP (the third argument in the socket() function determines this). IPPROTO_TCP or IPPROTO_UDP is what I usually use but I forget the #'s

Then, connect() is only really used with TCP sockets. UDP sockets need only bind() and then they're ready to...

sendto() is what you use with UDP, send() is for TCP, or your sockets can...

listen() is a function that returns whether or not your socket is ready to listen for data. It isn't a good one to use for an empty while loop, as it will likely not change, but...

accept() and recvdata() are functions that will return once a client has connected. One of these would be what you want to fill your while loop with. You have several errors in your programs, but they are close.

p.s.
for a freebie, go to books.google.com, search for the book
TCP/IP sockets in C and then search the book for "TCPEchoServer" and "TCPEchoClient" I think that is what you want exactly (pg 13 and pg18)
AnswerRe: HELP WITH WINSOCK PROGRAMMING Pin
Stephen Hewitt23-Jun-08 14:25
Stephen Hewitt23-Jun-08 14:25 
Questionoperator delete Pin
Eikthrynir23-Jun-08 7:24
Eikthrynir23-Jun-08 7:24 
AnswerRe: operator delete Pin
David Crow23-Jun-08 7:35
David Crow23-Jun-08 7:35 
GeneralRe: operator delete Pin
led mike23-Jun-08 7:52
led mike23-Jun-08 7:52 
JokeRe: operator delete Pin
David Crow23-Jun-08 8:53
David Crow23-Jun-08 8:53 
AnswerRe: operator delete Pin
Cedric Moonen23-Jun-08 7:44
Cedric Moonen23-Jun-08 7:44 
GeneralRe: operator delete Pin
led mike23-Jun-08 9:47
led mike23-Jun-08 9:47 
QuestionDateTimePicker Pin
si_6923-Jun-08 6:00
si_6923-Jun-08 6:00 
AnswerRe: DateTimePicker Pin
James R. Twine23-Jun-08 7:41
James R. Twine23-Jun-08 7:41 
GeneralRe: DateTimePicker Pin
bonkers23-Jun-08 20:53
bonkers23-Jun-08 20:53 
QuestionWin Update Runwizard fails in service Pin
Bob Bader23-Jun-08 5:45
Bob Bader23-Jun-08 5:45 
Question[Message Deleted] Pin
Trupti Mehta23-Jun-08 5:01
Trupti Mehta23-Jun-08 5:01 
AnswerRe: Activate other Property page from current Pin
David Crow23-Jun-08 5:31
David Crow23-Jun-08 5:31 
GeneralRe: Activate other Property page from current Pin
Trupti Mehta23-Jun-08 20:50
Trupti Mehta23-Jun-08 20:50 
QuestionTreeMap control for MFC application. Pin
Ahmed Charfeddine23-Jun-08 4:15
Ahmed Charfeddine23-Jun-08 4:15 
AnswerRe: TreeMap control for MFC application. Pin
James R. Twine23-Jun-08 7:57
James R. Twine23-Jun-08 7:57 
GeneralRe: TreeMap control for MFC application. Pin
Ahmed Charfeddine19-Nov-08 23:51
Ahmed Charfeddine19-Nov-08 23:51 

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.