I write Server-client socket program. Run it on two different pc.
If i keep running Server side & client side program restart many times then after that server program not receive frame.
For that i cross verify by Wireshark application, i can see frame receive in wireshark but in server program console nothing happen.
here i post both programs.
Client:-
here i not post what is contain in frame exactly. but in simple way it contains few int, short,
string.
Server Program:-
In wireshark cross verify & find some differences as bellow:-
1. Coloring Rule String
2. Indentification
3. Header Checksum
4. Source port
5. in Transmission Control Protocol info Flag :- 0x19(FIN, PSH, ACK) in Not Ok frame & in ok frame its
Flag : 0x18 (PSH,ACK)
6. checksum : 0xc81a( correct) in Ok frame & in not ok frame
checksum : 0xc24f( correct)
If i restart server side
java program & then try to send same frame from client program then it immediately receive in program.
Now my question is if i can see frame in wireshark then why not in java program?
1 more thing i want to share that in client side program
byte buffer is 100 byte but it contain only 58 byte actual.
today i will check whole thing by keeping accurate value for byte buffer size. but theoretically byte buffer size should not affect on working of server side program.
If i get clue/suggestion/solution/help then it will be helpful for me.