如何使用Socket传输uint(System.UInt32)类型的数字?
一个命令字为0x80000001,需要使用Socket传送给 Unix机器
使用 System.Net.IPAddress.HostToNetworkOrder 中居然没有传递uint的类型。
怎么传输啊??
int型可以使用
int nNew=System.Net.IPAddress.HostToNetworkOrder(n);
socket.Send(BitConverter.GetBytes(nNew));
uint怎么办,达人解释一下