private void CloseConnection() { Sabitler.bagli_client.Remove(connectionID); Sabitler.oyuncu_cikti(connectionID.ToString()); DataSender.SendOyuncuOyundanCikti(connectionID); socket.Close(); }
public void Start() { socket.SendBufferSize = 4096; socket.ReceiveBufferSize = 4096; stream = socket.GetStream(); recBuffer = new byte[4096]; stream.BeginRead(recBuffer, 0, socket.ReceiveBufferSize, OnReceiveData, null); Sabitler.oyuncu_baglandi(connectionID.ToString()); }
private void CloseConnection() { Sabitler.bagliClient.Remove(connectionId); Sabitler.Oyuncu_Cikti(connectionId.ToString()); socket.Close(); }