network programming - TCP handshake process -


i have tcp client application , trying connect server located @ remote machine. able connect it.

when send message called hello packet server should respond data , time info. surprise recv returns 0 @ client. since can't debug code @ server. not sure may there problem in encoding message format hello packet @ th client upon receiving wrong packet server clsoing connection wanted confirm meaning of following sequence

i got following info wire shark

   src ip------>dst ip syn    dst ip ----->src ip syn,ack    src ip------>dst ip ack      src ip------>dst ip continuation or non http traffic "hello packet"    dst ip------>ack    dst ip------>fin, ack 

does means server closing connection once receives hello packet?

yeah, fin,ack sequence sent 1 of entity connected when want close connection


Comments