Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

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