private void newClientRequest(object a, NetworkLib.ClientArgs e) { Utils.Logs.addLog("Proxy", NetworkLib.Constants.VOTER_CONNECTED, true, NetworkLib.Constants.LOG_MESSAGE, true); try { updateClientName(e.ID, e.NodeName); //clients as first message send his id string msg = NetworkLib.Constants.CONNECTION_SUCCESSFUL + "&"; sendMessage(clientSockets[e.ID], msg); Utils.Logs.addLog("Proxy", NetworkLib.Constants.VOTER_CONNECTED, true, NetworkLib.Constants.LOG_MESSAGE, true); } catch { } }
private void Server_OnNewMessageRecived(object myObject, NetworkLib.ClientArgs myArgs) { this.ID = myArgs.ID; }