File: Client.pod

package info (click to toggle)
libnet-sip-perl 0.46-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 720 kB
  • ctags: 328
  • sloc: perl: 7,312; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (9)
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

=head1 NAME

Net::SIP::NATHelper::Client - handle NAT/RTP forwarding using remote process

=head1 DESCRIPTION

This module implements the interface of L<Net::SIP::NATHelper::Base>
but will talk with a remote process based on L<Net::SIP::NATHelper::Server>
while executing the methods.

=head1 CONSTRUCTOR

=over 4

=item new ( SOCKET )

Will create a new object which will talk with the remote process using
the socket SOCKET. SOCKET is either a UNIX domain socket (in SOCK_STREAM
mode) or an C<host:port> specification in which case it will talk TCP
through the socket.

=back

=head1 METHODS

It implements the method B<allocate_sockets>, B<activate_session>
and B<close_session> with the same arguments as given in
L<Net::SIP::NATHelper::Server> by calling B<rpc> with the methods
"allocate", "activate" resp. "close".

=over 4

=item rpc ( METHOD,@ARG )

Makes a synchronous remote call to the server through the in the
constructor specified socket and returns the result.

For calling the arguments will be put into a \@list which will
be packet using L<Storable>. A similar way the result comes back.

=back