private void server_OnDataReceived(object Sender, ReceivedArguments R) //mesaj alma fonksiyonu { string yazi = R.Name + " : " + R.ReceivedData; //istemciden gelen mesajı sunucu ekranına yazar Textdegis(yazi); //mesaj ekranını güncelleme fonksiyonu çalışır server.BroadCast(R.Name + " : " + R.ReceivedData); // istemcinin sunucuya gönderdiği mesajı kendi mesaj penceresindede yazmaya yarar }
private void serverside_OnDataReceived(object Sender, ReceivedArguments R) { if (R.Name == Server.seeker) { serverside.SendTo(Server.recruiter, R.Name + " : " + R.ReceivedData); //serverside.BroadCast(R.Name + " : " + kamla1.Form1.recruiterName); ChangeTextBoxContents(R.Name + " : " + R.ReceivedData); } else if (R.Name == Server.recruiter) { serverside.SendTo(Server.seeker, R.Name + " : " + R.ReceivedData); //serverside.BroadCast(R.Name + " : " + kamla1.Form1.seekerName); ChangeTextBoxContents(R.Name + " : " + R.ReceivedData); } }
private void serverside_OnDataReceived(object Sender, ReceivedArguments R) { textBox1.Text = kamla1.Form1.seekerName; textBox2.Text = kamla1.Form1.recruiterName; if (R.Name == kamla1.Form1.seekerName) { //serverside.SendTo(kamla1.Form1.recruiterName, R.Name + " : " + R.ReceivedData); serverside.BroadCast(R.Name + " : " + kamla1.Form1.recruiterName); ChangeTextBoxContents(R.Name + " : " + R.ReceivedData); } else if (R.Name == kamla1.Form1.recruiterName) { //serverside.SendTo(kamla1.Form1.seekerName, R.Name + " : " + R.ReceivedData); serverside.BroadCast(R.Name + " : " + kamla1.Form1.seekerName); ChangeTextBoxContents(R.Name + " : " + R.ReceivedData); } }
private void server_OnDataReceived(object Sender, ReceivedArguments R) { updateGame(R.ReceivedData); game.moveAllowed = true; update(); }
void server_OnDataReceived(object Sender, ReceivedArguments R) { ChangeChatLog(R.ReceivedData); server.BroadCast(R.Name + "says: " + R.ReceivedData); }
private void server_OnDataReceived(object Sender, ReceivedArguments R) { }