Socket does not know your data type and treats it as a char sequence. If the types are inconsistent, it does not matter. Anyway, it only guarantees that the byte sequence is the same. It is equivalent to (int*)(new char[10]).
In a non-good network environment (for example, LAN), the return value should be a random value. Because they have no relationship in the first place. .
Socket does not know your data type and treats it as a char sequence. If the types are inconsistent, it does not matter. Anyway, it only guarantees that the byte sequence is the same. It is equivalent to (int*)(new char[10]).
In a non-good network environment (for example, LAN), the return value should be a random value.
Because they have no relationship in the first place. .