Home › Forums › Support › Empty packet receive handler? › Reply To: Empty packet receive handler?
July 5, 2014 at 14:24
#2735
Anonymous
Inactive
Heya Namikon,
Just create a standard packet handler and expect the incoming object to be null, i.e:
private static void HandleIncomingMessagePacket(PacketHeader header, Connection connection, string incomingString)
{
Console.WriteLine("\n ... Incoming message from " + connection.ToString() + " saying '" + incomingString + "'.");
}
If a signal packet is sent, i.e. a send where there is no send object, expect incomingString
to be null.
Regards,
Marc