void SendTcpControl(SocketNetDriverConnection connection) { controlCodeBytes[0] = (byte)EControlCode.SetChannelID; controlCodeBytes[1] = (byte)(connection.channelID & 0xff); controlCodeBytes[2] = (byte)((connection.channelID >> 8) & 0xff); connection.SendReliable(controlCodeBytes, 3); }
void SendTcpControlAck(SocketNetDriverConnection connection) { controlCodeBytes[0] = (byte)EControlCode.AckChannelID; connection.SendReliable(controlCodeBytes, 1); }