From: James Edward Gray II Date: 2007-11-16T12:22:38+09:00 Subject: Re: xmlrpc problems On Nov 15, 2007, at 5:00 PM, K. R. wrote: >>> server.call("sniffing.connect", 25000, "192.168.10.10") >> >> I don't see this method in the server. The script errors out at this >> point. > > This method call the handler "sniffing.connect" at the server. The > handler is registered just below of s = XMLRPC::Server.new(20000, > "192.168.10.2"), so I didn't see the problem. You are exactly right, of course. I'm sorry. I didn't pay enough attention when I was fiddling with this problem earlier. > In method start of class sniffer, I actually use a while loop until > the sender stop the sendingstream. I have sat over here fiddling with this thing half the night and I can't seem to get that far. When I run your server and client I get a type error for the arguments. I see this on error the client: /usr/local/lib/ruby/1.8/xmlrpc/client.rb:546:in `do_rpc': HTTP-Error: 500 Internal Server Error (RuntimeError) from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:420:in `call2' from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:410:in `call' from client.rb:6 And the server reports: [2007-11-15 21:15:20] ERROR RuntimeError: Wrong type! /usr/local/lib/ruby/1.8/xmlrpc/create.rb:274:in `conv2value' /usr/local/lib/ruby/1.8/xmlrpc/create.rb:148:in `methodResponse' /usr/local/lib/ruby/1.8/xmlrpc/create.rb:147:in `collect' /usr/local/lib/ruby/1.8/xmlrpc/create.rb:147:in `methodResponse' /usr/local/lib/ruby/1.8/xmlrpc/server.rb:378:in `handle' /usr/local/lib/ruby/1.8/xmlrpc/server.rb:310:in `process' /usr/local/lib/ruby/1.8/xmlrpc/server.rb:760:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' /usr/local/lib/ruby/1.8/xmlrpc/server.rb:648:in `serve' server.rb:37 localhost - - [15/Nov/2007:21:15:20 CST] "POST /RPC2 HTTP/1.1" 500 292 - -> /RPC2 I haven't figured this out yet, but I'm still trying. I'll get it eventually. Can I ask what version of Ruby you are using? Mine is: $ ruby -v ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin8.10.1] James Edward Gray II