sockets - TCP programming with .NET -
I am having a problem with socket programming job I have written a TCP customer who sends commands through sockets / networkstream is. I am using to see the raw data that goes through the stars. Every time I send a "command" (i.e. flush (network stream)), the wirhark application tells me that the checksum in the TCP header is incorrect ("It should be 0x2440 but should be 0x0000.) I get ACK back I do not understand why I will have to take care of the TCP header at the application level. This can not be true. Can anyone know why I am getting this "error"? I do not know about which I am using Net 2.0 sockets with TCP. Thanks.
Are you looking at Warhorck, which is sending the data, it can be dump from the machine? If so, then it is possible that checksum is not taken in the stack at the point where the wireershark is watching it. Many network cards these days are TCP checksum offloads, where checksome hardware Security is, and therefore checksum field will be zero is zero (hardware gets Wayrrs packet sharks before it is sent). As you cool rly with clear end to do ACK. Apart from this, if you are talking to a local host, then your stack may not be disturbed with checksum (they are not strictly required by the person speaking to themselves).
Comments
Post a Comment