xmlrpcs

This gems allow to easily change the transport layer in XMLRPC::Client class. It adds a new class called XMLRPC::ClientS, subclass of the Client class. This class must be subclassed to put your own transport code in it.

There are 3 private method that can be changed.

new_socket (info,async) This method is called to create a new socket. Info is the parameter you passed to the constructor and async is a boolean value that tells you if the socket should be asyncrhonous. The object returned must answer to read and write methods.

read_response (socket) Must read the response from the socket and return the data. You may leave this the default, but it will wait until the socket is closed.

write_request (socket,request) Writes the request in the socket, this may be left as it is.

write_request and read_response have to be changed to use a specific protocol if you don’t want the socket to be closed. In the test i use a very simple one for instance which needs no explanation.

Author: Dario Meloni <[email protected]>