shurix Posted September 28, 2009 Report Share Posted September 28, 2009 Vai ir kaut kāda iespēja nopingot serveri ar timeoutu mazāku par vienu sekundi. Tas ir ja serveris ir izslēgts tad negaida vienu sekundi bet teiksim 50 milisekundes? Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted September 28, 2009 Report Share Posted September 28, 2009 Windows vidē: ping -w 50 hosts Linux vidē, mazāk par sekundi laikam grūtāk: -W timeout Time to wait for a response, in seconds. The option affects only timeout in absense of any responses, otherwise ping waits for two RTTs. Quote Link to comment Share on other sites More sharing options...
shurix Posted September 28, 2009 Author Report Share Posted September 28, 2009 Vajadzētu tieši linuxam. Varbūt ar kaut kādām papildus funkcijām var uzstādīt mazāku laiku? Quote Link to comment Share on other sites More sharing options...
Klez Posted September 28, 2009 Report Share Posted September 28, 2009 gan jau ka var uztaisīt iekš cpp mazu programmeli, kas to izdara. Vēl varbūt ka pītonam ir tādas fīčas ... Quote Link to comment Share on other sites More sharing options...
shurix Posted September 28, 2009 Author Report Share Posted September 28, 2009 Vajadzēja tomēr php bet nu laikam nekā. Quote Link to comment Share on other sites More sharing options...
marrtins Posted September 28, 2009 Report Share Posted September 28, 2009 http://paste.php.lv/fa5231e58f9d5de4a19f76f30df18695?lang=php Uz linux gan jālaiž ar root :/ Varbūt var izdomāt arī bez root. Varbūt... Class icmpPacket zagta (vairs neatminos kur), izlaboti gļuki un papildināta ar calcChecksum,dump,checksum. Lai mainītu timeoutus, skat. socket_set_option() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.