Click here to Skip to main content
Rate this: bad
good
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................
 

 
Regards,
Ranjith
Posted 22-Feb-13 4:24am
Comments
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
   
yes
 
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
good
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.]
  Permalink  
Comments
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 https://en.wikipedia.org/wiki/Packet_analyzer 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)



Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2014
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