Click here to Skip to main content
15,916,288 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDeveloping Windows Service in XP with graphics Pin
richard9723-Jan-03 13:34
richard9723-Jan-03 13:34 
GeneralRe: Developing Windows Service in XP with graphics Pin
Mike Nordell23-Jan-03 17:13
Mike Nordell23-Jan-03 17:13 
GeneralCString and threads Pin
(Steven Hicks)n+123-Jan-03 12:59
(Steven Hicks)n+123-Jan-03 12:59 
GeneralRe: CString and threads Pin
Peter Molnar23-Jan-03 14:10
Peter Molnar23-Jan-03 14:10 
GeneralStatic Text Background Pin
mattmattbobatt23-Jan-03 12:39
mattmattbobatt23-Jan-03 12:39 
GeneralRe: Static Text Background Pin
jimNLX24-Jan-03 10:35
jimNLX24-Jan-03 10:35 
GeneralRe: Static Text Background Pin
georgiek5024-Jan-03 17:10
georgiek5024-Jan-03 17:10 
Generaltimeout recv on udp socket Pin
orcun colak23-Jan-03 12:34
orcun colak23-Jan-03 12:34 
When I create a udp socket and then bind to port 0 and set receive timeout to 5 seconds and then call recv it the recv does not wait 5 secs but returns immediately. When I check the error code with WSAGetLastError the error code is WSAECONNRESET. Why is the connections reset ?
I am using UDP and I am not connected .
What I am doing wrong ?
Here are the steps again
1) Create a UDP
2) Bind to 0
3) Send something to a destination address
4) setsockopt SO_RCVTIMEO to 5 secs.
5) try to recv something within 5 secs. But here it returns WSAECONNRESET !!!
What is wrong ?

Orcun Colak

Generalrecvfrom, not recv Pin
Anonymous23-Jan-03 14:57
Anonymous23-Jan-03 14:57 
GeneralCOleSafeArray Pin
Peter Molnar23-Jan-03 11:24
Peter Molnar23-Jan-03 11:24 
GeneralText on a Tool Bar Pin
Eldon Zacek23-Jan-03 11:18
Eldon Zacek23-Jan-03 11:18 
GeneralRe: Text on a Tool Bar Pin
PJ Arends23-Jan-03 12:52
professionalPJ Arends23-Jan-03 12:52 
GeneralHelp!! Pin
MemLeak23-Jan-03 10:39
MemLeak23-Jan-03 10:39 
GeneralRe: Help!! Pin
Jörgen Sigvardsson23-Jan-03 10:45
Jörgen Sigvardsson23-Jan-03 10:45 
GeneralRe: Help!! Pin
Christian Graus23-Jan-03 10:48
protectorChristian Graus23-Jan-03 10:48 
QuestionWhere did the ClassWizard go? Pin
davedoc23-Jan-03 10:21
davedoc23-Jan-03 10:21 
AnswerRe: Where did the ClassWizard go? Pin
Gary R. Wheeler23-Jan-03 10:25
Gary R. Wheeler23-Jan-03 10:25 
GeneralCProperty Sheet Pin
nlecren23-Jan-03 10:16
nlecren23-Jan-03 10:16 
GeneralRe: CProperty Sheet Pin
Roger Allen24-Jan-03 1:46
Roger Allen24-Jan-03 1:46 
GeneralRe: CProperty Sheet Pin
nlecren24-Jan-03 2:55
nlecren24-Jan-03 2:55 
General"new" array question (This might be really stupid of me...) Pin
ns23-Jan-03 10:08
ns23-Jan-03 10:08 
GeneralRe: "new" array question (This might be really stupid of me...) Pin
Gary R. Wheeler23-Jan-03 10:11
Gary R. Wheeler23-Jan-03 10:11 
Generalthank you!!! Pin
ns23-Jan-03 10:18
ns23-Jan-03 10:18 
GeneralGetting system icons by name Pin
ThomasKopp23-Jan-03 9:49
ThomasKopp23-Jan-03 9:49 
GeneralExecutable Pin
Anthony988723-Jan-03 9:14
Anthony988723-Jan-03 9:14 

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.