Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ Linux
Dear All,

I have created TCP/IP Application.
1)In Java , i have created for client application
2)In c++ Language , i have created for server application.
here Communication is happening between the client and server,But the problem is NOT RECEIVEING the all messages, which has been sent by Server(JAVA COMPONENT).

How can i validate am i receving all the data,
what ever data ,in which JAVA component(client) is sending
to C++ COMPONENT(server).

Any one can clarify................

Posted 22-Feb-13 4:24am
Richard MacCutchan at 22-Feb-13 10:20am
Without some more information it is impossible to guess what may be happening. Are you sure that your client and server are connecting to each other correctly?
ranjithkumar81 at 23-Oct-13 7:28am
I am able to receive the data
Richard MacCutchan at 23-Oct-13 9:21am
If you are concerned about receiving all the data then add some control bytes to your messages so you can clearly identify the message size and maybe even add a checksum at the end.
jeron1 at 22-Feb-13 14:21pm
How are your messages identified? If Nagle algorithm breaks up one of your messages into multiple packets how does your program respond?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Assuming the client and server are on different systems, you can use a third machine as a packet sniffer and watch interaction on the wire. [You can not monitor packets for a machine on the same machine.]
ranjithkumar81 at 23-Oct-13 7:29am
How? can you explain more about it?
H.Brydon at 23-Oct-13 8:05am
The Wikipedia page at has a reasonable explanation of packet analyzers in general, and some good leads on free software and "how to" links.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 650
1 Maciej Los 525
2 Suvendu Shekhar Giri 229
3 Sascha Lefévre 229
4 Richard Deeming 195
0 Sergey Alexandrovich Kryukov 9,693
1 OriginalGriff 9,185
2 Peter Leow 5,112
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,876

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100