Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 20:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



UDP Socket ? High packet lose rate?

Discussion on UDP Socket ? High packet lose rate? within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Decrypted's Avatar
 
elite*gold: 0
Join Date: Mar 2016
Posts: 70
Received Thanks: 176
UDP Socket ? High packet lose rate?

-
Decrypted is offline  
Old 03/09/2017, 21:28   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
you don't read the return value of the sendto function, check if all the data could be transmitted, or else wait a few ms and try again. You NIC (Well technically not the NIC itself it is in your RAM and your NIC works on it via DMA) doesn't have infinite memory (in fact due to the requirement of being a physically continuous block it is pretty limited). And if the NIC buffer is full sendto is not able to send all the data.

PS: if you want to test a protocol or an implementation you can use Omnet++ or ns-3 as simulation frameworks, both are open source, and you can test your communication in a simulation for many different scenarios you wont be able to test locally or with only a few servers.
warfley is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Trading] WTT - Platinum 5 (EUNE), (85% Win Rate, Ranked Solo Q: 104 win, 19 lose)
08/01/2015 - League of Legends Trading - 1 Replies
Hi all! I wanted to trade my EUNE account for another lol account. - Division: Plat 5 - Ranked Solo Q: (85 % Win Rate, Very High Mmr, 104 win / 19 lose) - Champions: 31 pieces
[Help] Packet Editor - Comparing Socket Data.
07/29/2011 - General Coding - 9 Replies
Hello, I want to save and compare the data of a 2 packets, and finding out if they contain the same data... Thanks to u-coRe & Metin2Spieler97 i have something like this, and its working great! Thanks for the help!!! This part saves the 1rst packet to be compared. bool paso0(const char* buf,int len){
[help]argate rate/socket rate/client editing
02/03/2011 - Dekaron Private Server - 15 Replies
Hi i need a little help with argate socket rate and editing client. first of all is how do u change argate and socket rate of server? second is how do u edit the default sx client with server files (like change server name, where u choose server,change background of login page) do u have to unpack the data folder of sx? oh got another last question to change exp and item drop, do u just change the config.ini, because i changed the exp there to 2000.0 but seems like i get 1000x exp :(...
Packet sending c# to an opend socket?
09/15/2010 - .NET Languages - 0 Replies
Hey guys, I got programs to send packets to a game using its socket. I tried to send packets like this: int port = 29200; Socket tcpsocket; tcpsocket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP); IPEndPoint remoteServerEndPoint = new IPEndPoint(IPAddress.Parse("128.241.92.43&quo t;), port ); tcpsocket.Connect(remoteServerEndPoint);



All times are GMT +1. The time now is 20:08.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.