Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[r386]: branches / 0.71 / lib / XMLRPC / Transport / TCP.pm Maximize Restore History

Download this file

TCP.pm    64 lines (39 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# ======================================================================
#
# Copyright (C) 2000-2001 Paul Kulchenko (paulclinger@yahoo.com)
# SOAP::Lite is free software; you can redistribute it
# and/or modify it under the same terms as Perl itself.
#
# $Id: TCP.pm 386 2011-08-18 19:48:31Z kutterma $
#
# ======================================================================
package XMLRPC::Transport::TCP;
use strict;
our $VERSION = 0.714;
use XMLRPC::Lite;
use SOAP::Transport::TCP;
# ======================================================================
package XMLRPC::Transport::TCP::Server;
@XMLRPC::Transport::TCP::Server::ISA = qw(SOAP::Transport::TCP::Server);
sub initialize; *initialize = \&XMLRPC::Server::initialize;
# ======================================================================
1;
__END__
=head1 NAME
XMLRPC::Transport::TCP - Server/Client side TCP support for XMLRPC::Lite
=head1 SYNOPSIS
use XMLRPC::Transport::TCP;
my $daemon = XMLRPC::Transport::TCP::Server
-> new (LocalAddr => 'localhost', LocalPort => 82, Listen => 5, Reuse => 1)
-> objects_by_reference(qw(My::PersistentIterator My::SessionIterator My::Chat))
-> dispatch_to('/Your/Path/To/Deployed/Modules', 'Module::Name', 'Module::method');
print "Contact to XMLRPC server at ", join(':', $daemon->sockhost, $daemon->sockport), "\n";
$daemon->handle;
=head1 DESCRIPTION
=head1 COPYRIGHT
Copyright (C) 2000-2001 Paul Kulchenko. All rights reserved.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=head1 AUTHOR
Paul Kulchenko (paulclinger@yahoo.com)
=cut