- En iyi cevaplar
- 0
Merhaba arkadaşlar bilmediğiniz üzere mod'lu server açıcam ve servere şöyle bir özellik ekledim, serverin mods klasörüyle oyuncunun mod klasörlerini karşılaştırarak otomatik yeni mod'ları indiriyor. Harika bir şey değilmi. Bunun anti hackla ne ilgisi var dicek olursanız bu modu birazcık inceleyerek mods klasörü yerine versionsuda eşitleyebilirsiniz belki diye modun linki veriyorum size umarım işinize yarar. Ayrıca istemediğin dosyalarıda silebiliyor iyi bir hacker katliam yapar bu mod'la 
Modun linki =
Ne işe yaradığıyla ilgili modun yapımcısının yazdığı yazı
Modun linki =
Linki görebilmek için üye olmanız gerekiyor.
Giriş yap veya üye ol.
Ne işe yaradığıyla ilgili modun yapımcısının yazdığı yazı
What does it do exactly?
- The server starts up and begins listening on the port defined in the config file
- If the server receives the recursive command the server will send a packet to the client containing all the files in the mods folder and the config folder.
- If the server receives the checksum command it will send back a md5 checksum of the file requested by the client.
- If the server receives the update command the server will start a file transfer of the file that the client requested.
- If the server receives the exists command the server will will return a boolean value of weather or not the file requested exists on the server.
- If the server receieves the exit command it will close the connection and destroy the thread. However, this will also happen automatically after X ammount of time as defined in the config file
- When the client clicks the button which has the ID defined in the config file the client will start the update script
- The client will first request the name of all the files on the server.
- The client will then iterate through each of these files
- If this file exists on the client it will take a checksum of it and ask the server if they are the same
- If the files are differnt it will send the update command to pull a new file
- If the client does not have the file it will send the update command to download it
- After iterating through all of the server files the client will then iterate through all of it's own files
- If the client has a file that the server does not, it will delete it.
- When all this finishes if there were updated files the client will ask the user if she/he wants to restart the client to apply the changes
- If there are no files to update the client will join the server that is defined in the IP field of the config file
Tam olarak ne işe yarıyor?
- Sunucu başlatıldığında ve yapılandırma dosyasında tanımlanan bağlantı noktası üzerinde dinleme başlar
- Sunucu özyinelemeli komut alırsa sunucu tüm mods klasördeki dosyaları ve yapılandırma klasörünü içeren istemciye bir paket gönderir.
- Sunucu sağlama komutu alırsa o müşteri tarafından talep edilen dosyanın bir md5 checksum geri göndereceğiz.
- Sunucu güncelleme komutu alırsa sunucu, istemci istenen dosyanın dosya aktarımını başlatmak olacaktır.
- Sunucu alırsa istenen dosya sunucuda mevcutsa bir boolean hava değerini veya dönecektir olacak sunucuyu komut var.
- Sunucu exit komutunu receieves Eğer bağlantıyı kapatmak ve iplik yok edecektir. Yapılandırma dosyasında tanımlanan Ancak, bu da zaman X kestirmeniz sonra otomatik olarak gerçekleşir
- İstemci yapılandırma dosyasında tanımlanan kimliği vardır düğmesini tıkladığında istemci güncelleştirmesi komut başlayacak
- Istemci ilk sunucudaki tüm dosyaların adını isteyecektir.
- İstemci daha sonra bu dosyaların her biri arasında yineleme olacak
- Bu dosya istemci üzerinde varsa bunun bir sağlama alacak ve aynı olup olmadığını sunucu sormak
- Dosyaları değişik iseniz yeni bir dosya çekmek için güncelleme komutu gönderecek
- Istemci dosyası yoksa bunu indirmek için güncelleme komutu gönderecek
- Sunucunun tüm yineleme sonra müşteri o zaman bütün yinelemenize edecek dosyalarını kendi dosyalarını var
- Istemci-sunucu değil bir dosya varsa, onu silecektir.
- Bütün bu güncellenmiş olsaydı bitirir dosyaları zaman o / o değişiklikleri uygulamak için istemci yeniden istiyorsa istemci kullanıcıya soracak
Son düzenleme: