Click here to Skip to main content
16,003,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IDE Problem? VS 2002 .Net Pin
sweep12312-Nov-03 5:34
sweep12312-Nov-03 5:34 
GeneralTear-off menus Pin
owhite12-Nov-03 5:06
owhite12-Nov-03 5:06 
GeneralRe: Tear-off menus Pin
Maximilien12-Nov-03 5:54
Maximilien12-Nov-03 5:54 
GeneralSorting out duplicate drives... Pin
dandy7212-Nov-03 4:41
dandy7212-Nov-03 4:41 
GeneralRe: Sorting out duplicate drives... Pin
David Crow12-Nov-03 4:48
David Crow12-Nov-03 4:48 
GeneralRe: Sorting out duplicate drives... Pin
dandy7213-Nov-03 2:38
dandy7213-Nov-03 2:38 
GeneralRe: Sorting out duplicate drives... Pin
Terry O'Nolley12-Nov-03 10:22
Terry O'Nolley12-Nov-03 10:22 
GeneralUDP Client Pin
NewHSKid12-Nov-03 4:19
NewHSKid12-Nov-03 4:19 
Hi everyone,

I have a UDP client running.

I wanted to know if I can use the flag MSG_PEEK when doing a Receive. I keep getting an error (WSAEMSGSIZE (10040)) which says the message is too long.

What is currently in the buffer is a 12 bytes message. I want to just peek at the first 4 bytes so that I know how to process it. I have a temp buffer declared as 4 bytes to store and determine what kind of message it is, but it keeps reading all 12 bytes, trancating, and returning an error. What I want it to do is peek at the buffer and then process each type of message. In the process method of each type, that is where I would like to take the info out the buffer.

I do this same method for TCP client and it works fine.

What should I be doing to have this perform like I want and how I have it in my TCP client app?

Thanks in advance.

Jimmy

Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
GeneralRe: UDP Client Pin
Peter Molnar12-Nov-03 12:58
Peter Molnar12-Nov-03 12:58 
GeneralDeveloping, building, and testing. How do it the best? Learning from the world leader - Microsoft Pin
gicio12-Nov-03 3:36
gicio12-Nov-03 3:36 
GeneralRe: Developing, building, and testing. How do it the best? Learning from the world leader - Microsoft Pin
David Crow12-Nov-03 4:44
David Crow12-Nov-03 4:44 
GeneralWinsock ? Again Pin
Stan the man12-Nov-03 3:30
Stan the man12-Nov-03 3:30 
GeneralRe: Winsock ? Again Pin
Antti Keskinen12-Nov-03 3:47
Antti Keskinen12-Nov-03 3:47 
GeneralRe: Winsock ? Again Pin
Pir8ofTampa12-Nov-03 3:55
Pir8ofTampa12-Nov-03 3:55 
GeneralRe: Winsock ? Again Pin
Peter Molnar12-Nov-03 13:03
Peter Molnar12-Nov-03 13:03 
GeneralCheckBoxes in setup Pin
BoudewijnEctor12-Nov-03 3:17
BoudewijnEctor12-Nov-03 3:17 
GeneralRe: CheckBoxes in setup Pin
David Crow12-Nov-03 3:29
David Crow12-Nov-03 3:29 
GeneralRe: CheckBoxes in setup Pin
BoudewijnEctor12-Nov-03 4:04
BoudewijnEctor12-Nov-03 4:04 
GeneralRe: CheckBoxes in setup Pin
David Crow12-Nov-03 4:08
David Crow12-Nov-03 4:08 
GeneralRe: CheckBoxes in setup Pin
BoudewijnEctor12-Nov-03 4:38
BoudewijnEctor12-Nov-03 4:38 
GeneralRe: CheckBoxes in setup Pin
David Crow12-Nov-03 4:54
David Crow12-Nov-03 4:54 
GeneralRe: CheckBoxes in setup Pin
BoudewijnEctor2-Dec-03 21:55
BoudewijnEctor2-Dec-03 21:55 
GeneralRe: CheckBoxes in setup Pin
David Crow3-Dec-03 2:54
David Crow3-Dec-03 2:54 
GeneralRe: CheckBoxes in setup Pin
Maximilien12-Nov-03 4:49
Maximilien12-Nov-03 4:49 
GeneralChange Printer Port Pin
Andy H12-Nov-03 3:04
Andy H12-Nov-03 3:04 

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.