Click here to Skip to main content
15,900,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to open files with spaces? (Beginner) Pin
David Crow24-Oct-07 3:29
David Crow24-Oct-07 3:29 
GeneralRe: How to open files with spaces? (Beginner) Pin
Peter Weyzen24-Oct-07 13:45
Peter Weyzen24-Oct-07 13:45 
QuestionPerformance issue.. Pin
Neo Andreson23-Oct-07 18:15
Neo Andreson23-Oct-07 18:15 
AnswerRe: Performance issue.. Pin
Hamid_RT23-Oct-07 21:02
Hamid_RT23-Oct-07 21:02 
AnswerRe: Performance issue.. Pin
David Crow24-Oct-07 3:39
David Crow24-Oct-07 3:39 
AnswerRe: Performance issue.. [modified] Pin
Neo Andreson24-Oct-07 4:00
Neo Andreson24-Oct-07 4:00 
QuestionHow to know the type of variable at run time?? Pin
ashishbhatt23-Oct-07 17:38
ashishbhatt23-Oct-07 17:38 
AnswerRe: How to know the type of variable at run time?? Pin
mr_Tuborg23-Oct-07 18:51
mr_Tuborg23-Oct-07 18:51 
AnswerRe: How to know the type of variable at run time?? Pin
Naveen23-Oct-07 19:43
Naveen23-Oct-07 19:43 
AnswerRe: How to know the type of variable at run time?? Pin
Mark Salsbery24-Oct-07 6:01
Mark Salsbery24-Oct-07 6:01 
QuestionMultiple definitions Pin
John R. Shaw23-Oct-07 15:49
John R. Shaw23-Oct-07 15:49 
AnswerRe: Multiple definitions Pin
Christian Graus23-Oct-07 16:07
protectorChristian Graus23-Oct-07 16:07 
GeneralRe: Multiple definitions Pin
John R. Shaw23-Oct-07 17:24
John R. Shaw23-Oct-07 17:24 
AnswerRe: Multiple definitions Pin
User 58385223-Oct-07 16:07
User 58385223-Oct-07 16:07 
GeneralRe: Multiple definitions Pin
Christian Graus23-Oct-07 16:29
protectorChristian Graus23-Oct-07 16:29 
GeneralRe: Multiple definitions Pin
John R. Shaw23-Oct-07 17:50
John R. Shaw23-Oct-07 17:50 
GeneralRe: Multiple definitions Pin
User 58385223-Oct-07 18:22
User 58385223-Oct-07 18:22 
GeneralRe: Multiple definitions Pin
John R. Shaw23-Oct-07 18:46
John R. Shaw23-Oct-07 18:46 
QuestionSuspendThread and StackWalk64 Pin
Baltoro23-Oct-07 14:08
Baltoro23-Oct-07 14:08 
AnswerRe: SuspendThread and StackWalk64 Pin
cmk24-Oct-07 10:16
cmk24-Oct-07 10:16 
GeneralThanks for Reply Pin
Baltoro25-Oct-07 6:11
Baltoro25-Oct-07 6:11 
Questionirc via socket Pin
Adno23-Oct-07 12:29
Adno23-Oct-07 12:29 
QuestionRe: irc via socket Pin
Mark Salsbery23-Oct-07 13:42
Mark Salsbery23-Oct-07 13:42 
AnswerRe: irc via socket Pin
Adno23-Oct-07 14:59
Adno23-Oct-07 14:59 
GeneralRe: irc via socket Pin
Mark Salsbery24-Oct-07 6:07
Mark Salsbery24-Oct-07 6:07 
It's impossible to say without seeing any code, but things to look at are:

1) Parsing messages from the server - the protocol doesn't include message length
parameters so it's up to you to recv() all bytes whenever there's an FD_READ event
and parse the bytes into messages.  Remember, on one recv(), you may only get a partial message.
You have to deal with that.

2) Make sure you're forming your client-to-server messages correctly.  ASCII only - no Unicode.
Use proper whitespace.  Check for server replies.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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.