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

C / C++ / MFC

 
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 
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 
Is that what's in the UDP data portion of the packet (not sure where UDP header ended and your data started)? If so, then you can just make a buffer that has the same exact data, shouldn't be hard just do something like:
//Only define data here not the UDP header info
const char RequestBuffer[] = {0xff,0xff,...,0x02} //pseudo-code, enter all numbers one byte at a time
//Remember char type is one byte... and one byte is two hex digits


...then just send that... except, if you're not really sure what's being sent, you may not get exactly what you're expecting... there's probably an API that defines the interactions between a "SQL Manager" and other SQL servers. If you're trying to create an application that simulates a manager, you should probably find whatever standard defines those interactions and implement that instead of just trying to blindly copy a data packet.

Good luck. Smile | :)
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 
GeneralRe: #define not const? Pin
Waldermort20-Oct-11 1:42
Waldermort20-Oct-11 1:42 
GeneralRe: #define not const? Pin
«_Superman_»20-Oct-11 2:19
professional«_Superman_»20-Oct-11 2:19 
AnswerRe: #define not const? Pin
Stefan_Lang21-Oct-11 2:55
Stefan_Lang21-Oct-11 2:55 

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.