private void WorkLoop() { while (sentPackets++ != maxSendPackets) { int n = ByteOrder.HostToBigEndian(sentPackets); int r = session.WriteData(BitConverter.GetBytes(n)); Console.WriteLine("Send {0}", sentPackets); } }
public static short NetworkToHostOrder(short network) { return(ByteOrder.HostToBigEndian(network)); }
public static short HostToNetworkOrder(short host) { return(ByteOrder.HostToBigEndian(host)); }
public static long NetworkToHostOrder(long network) { return(ByteOrder.HostToBigEndian(network)); }
public static long HostToNetworkOrder(long host) { return(ByteOrder.HostToBigEndian(host)); }