Hi
I'm using DarkNet in C# I've made this function, it sends a message to all the clients in the channel. I'm wondering, seems I've set it to not block until the message is sent, if I then delete the packet afterwards, is it going to do something bad in the case the packet hasn't completley sent to all clients?
public void sendMessage(string message)
{
Int64 SendPacket = mnCLR.CreatePacket();
mnCLR.AddInt(SendPacket, (int)OpCode.ChatMessage);
mnCLR.AddString(SendPacket, name, (uint)name.Length + 1, true);
mnCLR.AddString(SendPacket, message, (uint)message.Length + 1, true);
foreach (User usr in subscribers)
{
mnCLR.SendTCP(0, SendPacket, usr.connection_id, true, false);
}
mnCLR.DeletePacket(SendPacket);
}