sendto problem
-
Hi,there. I had a problem that can't solve it and I don't know why. The problem is that when I sendto one data to one server,then i picked the data through Network Monitor.There is more data than I send.And the source mac is more other than my own pc's mac. The problem I encountered first time and I don't know why it happened. Look forward your help.Thank you.
-
Hi,there. I had a problem that can't solve it and I don't know why. The problem is that when I sendto one data to one server,then i picked the data through Network Monitor.There is more data than I send.And the source mac is more other than my own pc's mac. The problem I encountered first time and I don't know why it happened. Look forward your help.Thank you.
-
Hi,there. I had a problem that can't solve it and I don't know why. The problem is that when I sendto one data to one server,then i picked the data through Network Monitor.There is more data than I send.And the source mac is more other than my own pc's mac. The problem I encountered first time and I don't know why it happened. Look forward your help.Thank you.
Do you understand what MTU size is? If not look it up ([^]) The basics are: UDP over IP uses an 8-byte header added by the UDP protocol and a 20-byte header added by the IP protocol. So +28 bytes of data in the header. TCP over IP uses a 20-byte header for the TCP, and again a 20-byte header added by the IP protocol. So +40 bytes in the header. So those are the headers and then will follow your data which will be in sizes making MTU block sizes. The data in the headers is referenced here UDP header http://en.wikipedia.org/wiki/User_Datagram_Protocol[^] TCP header http://en.wikipedia.org/wiki/Transmission_Control_Protocol[^] The IPv4 header http://en.wikipedia.org/wiki/IPv4_packet#Packet_structure[^]
In vino veritas