Home › Forums › Support › client-server to exchange files (like in p2p?) › Reply To: client-server to exchange files (like in p2p?)
July 31, 2013 at 16:45
#1008
Anonymous
Inactive
I have solved.
It seems the error was here:
NetworkComms.AppendGlobalIncomingPacketHandler<string>("aliveTest",
(packetHeader, connection, incomingString) =>
{
try {
Toast.MakeText(this, incomingString,ToastLength.Short).Show();
Console.WriteLine("... Incoming message from " +
connection.ToString() + " saying '" +
incomingString + "'.");
}catch (Exception err){
Console.WriteLine(err.Message);
}
});
incomingString.ToString(); <—— Original code copy and pasted from your sample 🙁