00001 var Client = require('./client') 00002 , Server = require('./server') 00003 , CustomType = require('./customtype') 00004 , dateFormatter = require('./date_formatter') 00005 00006 var xmlrpc = exports 00007 00019 xmlrpc.createClient = function(options) { 00020 return new Client(options, false) 00021 } 00022 00034 xmlrpc.createSecureClient = function(options) { 00035 return new Client(options, true) 00036 } 00037 00047 xmlrpc.createServer = function(options, callback) { 00048 return new Server(options, false, callback) 00049 } 00050 00060 xmlrpc.createSecureServer = function(options, callback) { 00061 return new Server(options, true, callback) 00062 } 00063 00064 xmlrpc.CustomType = CustomType 00065 xmlrpc.dateFormatter = dateFormatter