Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Comments
Richard MacCutchan 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 23-Oct-13 7:28am    
yes

I am able to receive the data
Richard MacCutchan 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 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

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.]
 
Share this answer
 
Comments
ranjithkumar81 23-Oct-13 7:29am    
How? can you explain more about it?
H.Brydon 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900