Click here to Skip to main content
15,894,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionvisual studio run time problem Pin
trioum19-Oct-11 20:09
trioum19-Oct-11 20:09 
AnswerRe: visual studio run time problem Pin
Chuck O'Toole19-Oct-11 21:28
Chuck O'Toole19-Oct-11 21:28 
GeneralRe: visual studio run time problem Pin
trioum19-Oct-11 22:54
trioum19-Oct-11 22:54 
GeneralRe: visual studio run time problem Pin
«_Superman_»20-Oct-11 2:26
professional«_Superman_»20-Oct-11 2:26 
GeneralRe: visual studio run time problem Pin
trioum20-Oct-11 5:08
trioum20-Oct-11 5:08 
GeneralRe: visual studio run time problem Pin
Chuck O'Toole20-Oct-11 15:01
Chuck O'Toole20-Oct-11 15:01 
AnswerRe: visual studio run time problem Pin
Albert Holguin20-Oct-11 4:01
professionalAlbert Holguin20-Oct-11 4:01 
QuestionI need socket help UDP broadcast, sendbuf Pin
jkirkerx19-Oct-11 14:24
professionaljkirkerx19-Oct-11 14:24 
I copied some sample code from msdn to create a socket, and modified it for testing. I want to broadcast a udp dgram, but I cant figure out what to send. I'm using ethereal to examine what SQL Management sends, and I'm trying to copy the behavior. So it looks like my first send is accurate, but I'm not sending the correct data out for a response back from sqlbrowser. I'm convinced if I send the right stuff, I will get my responses back from all the SQL servers. If i'm in the wrong forum sorry, didn't really know where to post it.

I tried 0x02 in the send buffer.

iResult = getaddrinfo(
"255.255.255.255",
"ms-sql-m",
&hints,
&result
);

I think this is what SQL Management sent
0000  ff ff ff ff ff ff 00 13  72 36 67 30 08 00 45 00   ........ r6g0..E.
0010  00 1d 6f 9a 00 00 80 11  07 8a c0 a8 03 04 ff ff   ..o..... ........
0020  ff ff 05 8b 05 9a 00 09  2f 0b 02                  ........ /.. 


And this is what I sent
0000  ff ff ff ff ff ff 00 13  72 36 67 30 08 00 45 00   ........ r6g0..E.
0010  00 22 8c 51 00 00 80 11  ea cd c0 a8 03 04 ff ff   .".Q.... ........
0020  ff ff 06 bc 05 9a 00 0e  9c 8f 30 78 32 66 30 62   ........ ..0x2f0b

AnswerRe: I need socket help UDP broadcast, sendbuf Pin
Goto_Label_19-Oct-11 23:01
Goto_Label_19-Oct-11 23:01 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 6:25
professionaljkirkerx20-Oct-11 6:25 
AnswerRe: I need socket help UDP broadcast, sendbuf Pin
Albert Holguin20-Oct-11 4:14
professionalAlbert Holguin20-Oct-11 4:14 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 6:21
professionaljkirkerx20-Oct-11 6:21 
AnswerRe: I need socket help UDP broadcast, sendbuf Pin
Albert Holguin20-Oct-11 6:50
professionalAlbert Holguin20-Oct-11 6:50 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 8:54
professionaljkirkerx20-Oct-11 8:54 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
Albert Holguin20-Oct-11 11:31
professionalAlbert Holguin20-Oct-11 11:31 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 12:39
professionaljkirkerx20-Oct-11 12:39 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 12:46
professionaljkirkerx20-Oct-11 12:46 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
Albert Holguin21-Oct-11 4:51
professionalAlbert Holguin21-Oct-11 4:51 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx21-Oct-11 6:52
professionaljkirkerx21-Oct-11 6:52 
AnswerYou have to use the memset Pin
jkirkerx20-Oct-11 11:05
professionaljkirkerx20-Oct-11 11:05 
AnswerRe: You have to use the memset Pin
Albert Holguin20-Oct-11 11:35
professionalAlbert Holguin20-Oct-11 11:35 
Question#define not const? Pin
Waldermort19-Oct-11 3:58
Waldermort19-Oct-11 3:58 
AnswerRe: #define not const? Pin
TheGreatAndPowerfulOz19-Oct-11 5:14
TheGreatAndPowerfulOz19-Oct-11 5:14 
GeneralRe: #define not const? Pin
Waldermort19-Oct-11 5:48
Waldermort19-Oct-11 5:48 
AnswerRe: #define not const? Pin
«_Superman_»19-Oct-11 16:39
professional«_Superman_»19-Oct-11 16:39 

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.