You need to specify more when you ask questions. You're running a TQ binary server and you need to specify that; else, someone's going to give you some C# code which isn't going to help you in the slightest. A server and its code aren't general things, they're extremely specific.
Moronic affluence is ruining this community. Every time I ask you for specification, you give me jack all. Again, specify. What type of website is it? PHP, just HTML? What type of server is this for? The same TQ Binary server you were asking about previously? Speak in more than one sentence at a time, **** it.
@Spirited
You should just stop replying to threads you know are doomed from the beginning, saves you a lot of headache and might stop them from asking stupid questions in a stupid way.
you can use this PHP code to check how many connections are on the game port , it will work with all type of games and servers , since it just checks the port connections , not a game related matter
Moronic affluence is ruining this community. Every time I ask you for specification, you give me jack all. Again, specify. What type of website is it? PHP, just HTML? What type of server is this for? The same TQ Binary server you were asking about previously? Speak in more than one sentence at a time, **** it.
Mr_Pop gave you an reply that will overload your server probably if your site get many requests, but it's already something you can use (if you have good logic, it still might be useful). Good luck.
Why is there a minus two in that php function?
"How many connections are established to my server netstat?"
Zero.
"Let's subtract two from that."
I'm not sure why you are being sarcastic! If you don't understand the point of "-2" use your brain for like 5 secs you will figure it out , but let me give you a hint , when your server "listen on" that port for up coming connections , doesn't that considered as a connection? oh well yeah it does, so next time Google, before you act sarcastic maybe?!
PS: figure the second connection yourself, I already explained one
I'm not sure why you are being sarcastic! If you don't understand the point of "-2" use your brain for like 5 secs you will figure it out , but let me give you a hint , when your server "listen on" that port for up coming connections , doesn't that considered as a connection? oh well yeah it does, so next time Google, before you act sarcastic maybe?!
PS: figure the second connection yourself, I already explained one
You don't even know what your sodding command does. No, it doesn't return two for the account and game servers unless someone's connected because you're finding based on the "ESTABLISHED" string. A listening server doesn't have an additional "ESTABLISHED" status until someone connects to it; it has the "LISTENING" status only. ***, no wonder a few trash servers had -2 as the player counts. It was because they were using your broken script.
Edit: What you should be doing is finding against the local endpoint. That way, you wouldn't be trying to do something stupid like subtracting 2 from the connection count - it would just be the number of remote connections. "Google, before you act sarcastic maybe?!"
You don't even know what your sodding command does. No, it doesn't return two for the account and game servers unless someone's connected because you're finding based on the "ESTABLISHED" string. A listening server doesn't have an additional "ESTABLISHED" status until someone connects to it; it has the "LISTENING" status only. ***, no wonder a few trash servers had -2 as the player counts. It was because they were using your broken script.
Edit: What you should be doing is finding against the local endpoint. That way, you wouldn't be trying to do something stupid like subtracting 2 from the connection count - it would just be the number of remote connections.
I was clear about it works when you listen on the ports, and yes I agree it was an old script , it's not efficient , but it gives him a starting point?! ,I'm not going to spoonfeed him! my point of argument with you is that you were being sarcastic instead of discussing what is the wrong with the script to help him!
I was clear about it works when you listen on the ports, and yes I agree it was an old script , it's not efficient , but it gives him a starting point?! ,I'm not going to spoonfeed him! my point of argument with you is that you were being sarcastic instead of discussing what is the wrong with the script to help him!
It handles the lower bounding edge case for no connections incorrectly. It is, therefore, incorrect. If you actually read what I wrote, I wouldn't have to repeat this. Edit: Regardless, this isn't my problem to fix and I have class and work in the morning. Cheers.
Velox2- Newschool Player vs Player!! Schon 2 Monate online! 07/18/2015 - Metin2 PServer Advertising - 21 Replies Server ist seit 2 Monaten Online! ist nur eine Neue Vorstellung
Velox2 Homepage
Backlink ist vorhanden
http://i.epvpimg.com/p4LDc.jpghttp://i.epvpimg.co m/btyCg.pnghttp://i.epvpimg.com/ENKpe.pnghttp://i. epvpimg.com/WNgTd.pnghttp://i.epvpimg.com/O39Hd.pn ghttp://i.epvpimg.com/Mcgjc.pnghttp://i.epvpimg.co m/mDOef.pnghttp://i.epvpimg.com/TllAb.pnghttp://i. epvpimg.com/NA4Mf.jpg
http://i.epvpimg.com/bL8Zf.png
design by .Liquid Arts
[HELP]Player Online php 01/18/2014 - Shaiya PServer Development - 2 Replies HI All, who have the script for player online?
Name level class ?
i not found in "search"!
xPeria Online 110 Cap 7/24 Online 0 lag Open 7 days +300 Online Player 06/22/2013 - SRO PServer Advertising - 28 Replies http://k1306.hizliresim.com/1b/f/p3mk9.jpg
http://o1306.hizliresim.com/1b/9/ny0dx.png Offical Page = Xperia Online Private Server
http://o1306.hizliresim.com/1b/9/ny0dx.png Downloand = Xperia Online Client
http://o1306.hizliresim.com/1b/9/ny0dx.png Register = Xperia Online Register
http://o1306.hizliresim.com/1b/9/ny0dx.png Facebook =Xperia Online
http://o1306.hizliresim.com/1b/8/nxypy.png