Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -115,6 +115,9 @@ namespace Server
|
|||||||
Console.WriteLine($"set resistance worked is " + worked);
|
Console.WriteLine($"set resistance worked is " + worked);
|
||||||
//set resistance on doctor GUI
|
//set resistance on doctor GUI
|
||||||
break;
|
break;
|
||||||
|
case DataParser.MESSAGE:
|
||||||
|
//TODO send message to clients
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
Console.WriteLine($"Received json with identifier {identifier}:\n{Encoding.ASCII.GetString(payloadbytes)}");
|
Console.WriteLine($"Received json with identifier {identifier}:\n{Encoding.ASCII.GetString(payloadbytes)}");
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -35,15 +35,6 @@ namespace Server
|
|||||||
var tcpClient = listener.EndAcceptTcpClient(ar);
|
var tcpClient = listener.EndAcceptTcpClient(ar);
|
||||||
Console.WriteLine($"Client connected from {tcpClient.Client.RemoteEndPoint}");
|
Console.WriteLine($"Client connected from {tcpClient.Client.RemoteEndPoint}");
|
||||||
clients.Add(new Client(this, tcpClient));
|
clients.Add(new Client(this, tcpClient));
|
||||||
/*if (doctor == null)
|
|
||||||
{
|
|
||||||
doctor = clients.ElementAt(0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
doctor.sendMessage(DataParser.getNewConnectionJson("jan"));
|
|
||||||
}*/
|
|
||||||
listener.BeginAcceptTcpClient(new AsyncCallback(OnConnect), null);
|
listener.BeginAcceptTcpClient(new AsyncCallback(OnConnect), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user