Re: rb_sys_fail(socket(2)) - errno == 0
- From: Glen Holcomb <damnbigman@xxxxxxxxx>
- Date: Fri, 8 Aug 2008 08:53:15 -0500
[Note: parts of this message were removed to make it a legal post.]
On Fri, Aug 8, 2008 at 7:43 AM, Daniel Berger <djberg96@xxxxxxxxx> wrote:
Thanks guys.
On Aug 6, 4:17 am, "Heesob Park" <pha...@xxxxxxxxx> wrote:
2008/8/6 Daniel Berger <djber...@xxxxxxxxx>:to
Glen Holcomb wrote:
On Tue, Aug 5, 2008 at 12:34 PM, Phill Davies
<binary011...@xxxxxxxxxxx>wrote:
You can use Ping from the Ruby standard library.
require 'ping'
Ping.pingecho "google.com", <timeout>, <port>
Where timeout is the number of seconds to wait for a reply (defaults
ought5) and port is the port to use (defaults to the 'echo' port)
Unless you have something more specific you are trying to do this
forto work.
Glen Holcomb wrote:
That is the error message I get when I try either of these methods
andcreating an ICMP packet:
socket = Socket.new(Socket::PF_INET, Socket::SOCK_RAW,
Socket::IPPROTO_ICMP)
or
with net-ping
icmp = Ping::ICMP.new('machine_name')
icmp.ping?
I am on Windows XP. The account I'm logged in as has local
administrator
rights.
What I'm trying to do is check to see if a system is up before I try
http://rubyforge.org/tracker/?func=detail&group_id=167&aid=9438&atid=715make a WIN32OLE connection to it as they take forever to time-out
It's a problem with the socket.so file that ships with the one click
installer. Take a look at this ticket for more information:
The socket.so has nothing to do with this problem.
It's a problem with the msvcrt-ruby18.dll file.
That bug is related to the winsock2 compatibility.
The OCI version was built with the flag '--with-winsock2'.
If you build ruby without '--with-winsock2', it will work fine.
My bad. Thanks for the clarification.
Dan
--
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can't hear a word you're saying."
-Greg Graffin (Bad Religion)
.
- References:
- rb_sys_fail(socket(2)) - errno == 0
- From: Glen Holcomb
- Re: rb_sys_fail(socket(2)) - errno == 0
- From: Phill Davies
- Re: rb_sys_fail(socket(2)) - errno == 0
- From: Glen Holcomb
- Re: rb_sys_fail(socket(2)) - errno == 0
- From: Daniel Berger
- Re: rb_sys_fail(socket(2)) - errno == 0
- From: Heesob Park
- Re: rb_sys_fail(socket(2)) - errno == 0
- From: Daniel Berger
- rb_sys_fail(socket(2)) - errno == 0
- Prev by Date: Re: Regex. How to return multiple lines
- Next by Date: Non-Threaded Timeout?
- Previous by thread: Re: rb_sys_fail(socket(2)) - errno == 0
- Next by thread: Re: rb_sys_fail(socket(2)) - errno == 0
- Index(es):
Relevant Pages
|