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

C / C++ / MFC

 
GeneralRe: CEdit updates in dialog box Pin
valikac30-May-03 13:24
valikac30-May-03 13:24 
GeneralRe: CEdit updates in dialog box Pin
Peter Weyzen30-May-03 21:49
Peter Weyzen30-May-03 21:49 
GeneralKeep the cursor inside a window Pin
Daniela12330-May-03 11:36
Daniela12330-May-03 11:36 
GeneralRe: Keep the cursor inside a window Pin
Michael Dunn30-May-03 11:50
sitebuilderMichael Dunn30-May-03 11:50 
GeneralRe: Keep the cursor inside a window Pin
Anonymous31-May-03 17:18
Anonymous31-May-03 17:18 
Generalraw packet with setsockopt() and sendto() Pin
Kuniva30-May-03 11:32
Kuniva30-May-03 11:32 
GeneralRe: raw packet with setsockopt() and sendto() Pin
JohnnyG30-May-03 18:34
JohnnyG30-May-03 18:34 
GeneralRe: raw packet with setsockopt() and sendto() Pin
Kuniva31-May-03 5:11
Kuniva31-May-03 5:11 
erm..
Well first of all thanks for taking a look. I can understand most of the comments but there's two things i don't seem to understand:
1.: Why get rid of strlen() in sendto()? I can understand that i need to replace it with sizeof() but the argument in sendto() requests the size of datagram, which would be the header + the data
2.: So obviously the second thing i don't understand is this:
"Thus, the length in sendto() would be 5 or 6 (incl the terminating zero)"
Isn't my header in there too? and did i not use strcpy(datagram+28,"Teste") ??? to put the "Teste" string behind the ip+udp header? Or am i missing something here?
I realise you only took a quick look, and the code is somewhat chaotic, but this didn't seem to make sense to me.

I'll also try using a different port number.
Thanks

Kuniva
--------------------------------------------
GeneralRe: raw packet with setsockopt() and sendto() Pin
JohnnyG31-May-03 13:20
JohnnyG31-May-03 13:20 
GeneralRe: raw packet with setsockopt() and sendto() Pin
Peter Weyzen30-May-03 22:01
Peter Weyzen30-May-03 22:01 
GeneralMySQL in a small app... Pin
Gnascher30-May-03 10:25
Gnascher30-May-03 10:25 
GeneralRe: MySQL in a small app... Pin
Robert Little30-May-03 11:12
Robert Little30-May-03 11:12 
GeneralRe: MySQL in a small app... Pin
Anonymous30-May-03 12:00
Anonymous30-May-03 12:00 
GeneralRe: MySQL in a small app... Pin
Robert Little30-May-03 18:21
Robert Little30-May-03 18:21 
GeneralRe: MySQL in a small app... Pin
Neville Franks30-May-03 13:29
Neville Franks30-May-03 13:29 
GeneralRe: MySQL in a small app... Pin
Gnascher30-May-03 14:20
Gnascher30-May-03 14:20 
GeneralRe: MySQL in a small app... Pin
Neville Franks31-May-03 0:21
Neville Franks31-May-03 0:21 
QuestionHow to get control(button) ID in runtime Pin
Roman Muntyanu30-May-03 10:22
Roman Muntyanu30-May-03 10:22 
AnswerRe: How to get control(button) ID in runtime Pin
David Crow30-May-03 10:57
David Crow30-May-03 10:57 
QuestionHow to highlight an item in a list control in report view? Pin
julych30-May-03 10:16
julych30-May-03 10:16 
AnswerRe: How to highlight an item in a list control in report view? Pin
skaanji30-May-03 10:49
skaanji30-May-03 10:49 
AnswerRe: How to highlight an item in a list control in report view? Pin
Michael Dunn30-May-03 11:32
sitebuilderMichael Dunn30-May-03 11:32 
QuestionWhat is the Address of the Active IE ? Pin
Anonymous30-May-03 9:18
Anonymous30-May-03 9:18 
AnswerRe: What is the Address of the Active IE ? Pin
David Crow30-May-03 9:57
David Crow30-May-03 9:57 
GeneralRe: What is the Address of the Active IE ? Pin
Anonymous31-May-03 0:29
Anonymous31-May-03 0:29 

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.