1SOAP::Transport::TCP(3)User Contributed Perl DocumentatioSnOAP::Transport::TCP(3)
2
3
4

NAME

6       SOAP::Transport::TCP - TCP Transport Support for SOAP::Lite
7
8   SOAP::Transport::TCP
9       The classes provided by this module implement direct TCP/IP
10       communications methods for both clients and servers.
11
12       The connections don't use HTTP or any other higher-level protocol.
13       These classes are selected when the client or server object being
14       created uses an endpoint URI that starts with tcp://. Both client and
15       server classes support using Secure Socket Layer if it is available. If
16       any of the parameters to a new method from either of the classes begins
17       with SSL_ (such as SSL_server in place of Server), the class attempts
18       to load the IO::Socket::SSL package and use it to create socket
19       objects.
20
21       Both of the following classes catch methods that are intended for the
22       socket objects and pass them along, allowing calls such as
23       $client->accept( ) without including the socket class in the
24       inheritance tree.
25
26       SOAP::Transport::TCP::Client
27
28       Inherits from: SOAP::Client.
29
30       The TCP client class defines only two relevant methods beyond new and
31       send_receive. These methods are:
32
33       SSL(optional new boolean value)
34               if ($client->SSL) # Execute only if in SSL mode
35
36           Reflects the attribute that denotes whether the client object is
37           using SSL sockets for communications.
38
39       io_socket_class
40               ($client->io_socket_class)->new(%options);
41
42           Returns the name of the class to use when creating socket objects
43           for internal use in communications. As implemented, it returns one
44           of IO::Socket::INET or IO::Socket::SSL, depending on the return
45           value of the previous SSL method.
46
47       If an application creates a subclass that inherits from this client
48       class, either method is a likely target for overloading.
49
50       The new method behaves identically to most other classes, except that
51       it detects the presence of SSL-targeted values in the parameter list
52       and sets the SSL method appropriately if they are present.
53
54       The send_receive method creates a socket of the appropriate class and
55       connects to the configured endpoint. It then sets the socket to
56       nonblocking I/O, sends the message, shuts down the client end of the
57       connection (preventing further writing), and reads the response back
58       from the server. The socket object is discarded after the response and
59       appropriate status codes are set on the client object.
60
61       SOAP::Transport::TCP::Server
62
63       Inherits from: SOAP::Server.
64
65       The server class also defines the same two additional methods as in the
66       client class:
67
68       SSL(optional new boolean value)
69               if ($client->SSL) # Execute only if in SSL mode
70
71           Reflects the attribute that denotes whether the client object is
72           using SSL sockets for communications.
73
74       io_socket_class
75               ($client->io_socket_class)->new(%options);
76
77           Returns the name of the class to use when creating socket objects
78           for internal use in communications. As implemented, it returns one
79           of IO::Socket::INET or IO::Socket::SSL, depending on the return
80           value of the previous SSL method. The new method also manages the
81           automatic selection of SSL in the same fashion as the client class
82           does.
83
84           The handle method in this server implementation isn't designed to
85           be called once with each new request. Rather, it is called with no
86           arguments, at which time it enters into an infinite loop of waiting
87           for a connection, reading the request, routing the request and
88           sending back the serialized response. This continues until the
89           process itself is interrupted by an untrapped signal or similar
90           means.
91
93       Copyright (C) 2000-2004 Paul Kulchenko. All rights reserved.
94
95       This library is free software; you can redistribute it and/or modify it
96       under the same terms as Perl itself.
97

AUTHORS

99       Written by Paul Kulchenko.
100
101       Split from SOAP::Lite and SOAP-Transport-TCP packaging by Martin Kutter
102
103
104
105perl v5.36.0                      2022-07-22           SOAP::Transport::TCP(3)
Impressum