Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: If I may be so bold , newbie help Pin
hotari12-Oct-06 10:48
hotari12-Oct-06 10:48 
GeneralRe: If I may be so bold , newbie help Pin
Mark Salsbery12-Oct-06 11:07
Mark Salsbery12-Oct-06 11:07 
GeneralRe: If I may be so bold , newbie help Pin
hotari12-Oct-06 11:14
hotari12-Oct-06 11:14 
AnswerRe: If I may be so bold , newbie help Pin
Hamid_RT13-Oct-06 8:00
Hamid_RT13-Oct-06 8:00 
GeneralRe: If I may be so bold , newbie help [modified] Pin
hotari19-Oct-06 19:40
hotari19-Oct-06 19:40 
QuestionTCP Socket and packet sending problem Pin
nahitan12-Oct-06 8:42
nahitan12-Oct-06 8:42 
AnswerRe: TCP Socket and packet sending problem Pin
Mark Salsbery12-Oct-06 9:58
Mark Salsbery12-Oct-06 9:58 
GeneralRe: TCP Socket and packet sending problem Pin
nahitan12-Oct-06 10:47
nahitan12-Oct-06 10:47 
Here is one example of my XML string comming in one single receiving data: as you can see each time I receive one Message, it should start with time and then the start of string which is WEResp or WESend or Recv and after that the whole string should come by ending string that would be . when the trafic is not very busy I receive the string like that but sometimes I receive many strings appended to each other and as you mentioned, some times it goes beyond my buffer size in which I would lose information. What my code does is that using a thread, reads the info and put it in a buffer and then parse it and sends it down to another application.

Oct 07 11:03:53.359 i: : <weresp id="128"><deviceid>210<groupid>1<msgtype>5<flags>144<status>S<responsecode>2
<wesend id="115"><deviceid>87<groupid>1<priority>0<msgtype>3<flags>128<datalen>50000030805<status>N<wesend id="130"><deviceid>232<groupid>1<priority>1<msgtype>5<flags>128<datalen>3000200<status>N<wesend id="131"><deviceid>232<groupid>1<priority>1<msgtype>5<flags>128<datalen>3000200<status>N<wesend id="132"><deviceid>41<groupid>1<priority>0<msgtype>3<flags>128<datalen>50000030804<status>N<wesend id="149"><deviceid>167<groupid>1<priority>0<msgtype>3<flags>128<datalen>1000000106030000660101<status>N<wesend id="58"><deviceid>
Oct 07 11:03:53.468 o: : 181<groupid>1<priority>0<msgtype>1<flags>128<datalen>150001480C0301010000060106010B05<status>N<wesend id="63"><deviceid>181<groupid>1<priority>0<msgtype>32<flags>128<datalen>21308<status>N<wesend id="66"><deviceid>181<groupid>1<priority>0<msgtype>5<flags>128<datalen>1100001083130382C2048414E53454E204E4F5254482072642C2042524D50544E0D0A0D0A444553542E2E2E0D0A4252414D414C45412042415054495354204348555243480D0A393035302C2044495849452072642C202320432C2042524D50544E0D0A0D0A5452583D303432333436<status>N<wesend id="72"><deviceid>87<groupid>1<priority>0<msgtype>3<flags>128<datalen>50000030805<status>N<wesend id="74"><deviceid>232<groupid>1<priority>0

thanks for the help.
GeneralRe: TCP Socket and packet sending problem Pin
Mark Salsbery12-Oct-06 10:59
Mark Salsbery12-Oct-06 10:59 
GeneralRe: TCP Socket and packet sending problem Pin
Moak1-Nov-06 4:16
Moak1-Nov-06 4:16 
Questionconfusing about complex linked data structures, using pointer Pin
EzraYap12-Oct-06 6:21
EzraYap12-Oct-06 6:21 
AnswerRe: confusing about complex linked data structures, using pointer Pin
David Crow12-Oct-06 6:45
David Crow12-Oct-06 6:45 
AnswerRe: confusing about complex linked data structures, using pointer Pin
Zac Howland12-Oct-06 7:25
Zac Howland12-Oct-06 7:25 
Questionprograming Pin
Dure-Shehwar12-Oct-06 5:56
Dure-Shehwar12-Oct-06 5:56 
AnswerRe: programing Pin
Zac Howland12-Oct-06 6:11
Zac Howland12-Oct-06 6:11 
AnswerRe: programing Pin
Makakuin12-Oct-06 7:32
Makakuin12-Oct-06 7:32 
GeneralRe: programing Pin
Makakuin12-Oct-06 7:47
Makakuin12-Oct-06 7:47 
AnswerRe: programing Pin
Christian Graus12-Oct-06 8:19
protectorChristian Graus12-Oct-06 8:19 
AnswerRe: programing Pin
Rudolf Jan13-Oct-06 0:14
Rudolf Jan13-Oct-06 0:14 
Questionprogramming Pin
Dure-Shehwar12-Oct-06 5:46
Dure-Shehwar12-Oct-06 5:46 
AnswerRe: programming Pin
David Crow12-Oct-06 5:51
David Crow12-Oct-06 5:51 
GeneralRe: programming Pin
Hamid_RT12-Oct-06 6:37
Hamid_RT12-Oct-06 6:37 
AnswerRe: programming Pin
Hamid_RT12-Oct-06 6:39
Hamid_RT12-Oct-06 6:39 
GeneralRe: programming Pin
led mike12-Oct-06 8:12
led mike12-Oct-06 8:12 
GeneralRe: programming Pin
Hamid_RT12-Oct-06 19:48
Hamid_RT12-Oct-06 19:48 

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.