Raised This Month: $ Target: $400
 0% 

[Socket] Detect when remote host is offline


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 10-31-2019 , 12:05   Re: [Socket] Detect when remote host is offline
Reply With Quote #3

Quote:
Originally Posted by iNvectus View Post
https://www.amxmodx.org/api/sockets/socket_open
PHP Code:
Default error codes:
No error
Error while creating socket
Couldn't resolve hostname
3 - Couldn'
t connect 
The 3rd is what you are looking for. If you cannot connect, it is offline - either port not opened or it is not connected to internet.
Yes i know, but even with remote host offline socket will return 0 no error.
So that is a bug or someting else in sockets module?

Ps. it is a UDP socket!
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 10-31-2019 at 12:06.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode