Exemplo n.º 1
0
 /// <summary>
 /// Sends a comand packet to the specified connection unreliably (might not get there)
 /// </summary>
 /// <param name="conn">Connection to send to</param>
 /// <param name="flags">Packet flags</param>
 /// <param name="opcode">Packet OPCode</param>
 /// <param name="fields">Packet fields</param>
 /// <returns>UDP_OK or error code</returns>
 public int SendUnreliableCommand(byte flags, string opcode, string[] fields)
 {
     //Make sure the reliable flag is off
     flags &= (byte)(~UdpConsts.FLAGS_RELIABLE);
     return(m_Parent.SendCommand(m_RemoteEP.Address.ToString(), m_RemoteEP.Port, m_EncryptionKey, m_LastSentPacket, flags, opcode, fields));
 }