File: Local.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 (54 lines) | stat: -rw-r--r-- 1,355 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
43
44
45
46
47
48
49
50
51
52
53
54

=head1 NAME

Net::SIP::NATHelper::Local - handle NAT/RTP forwarding in local event loop.

=head1 DESCRIPTION

This module is a wrapper around L<Net::SIP::NATHelper::Base> which will
handle the RTP forwarding within the local event loop the rest of L<Net::SIP>
uses.

=head1 CONSTRUCTOR

=over 4

=item new ( LOOP )

Will create the object and tell it to use LOOP as the event loop.
Will create a L<Net::SIP::NATHelper::Base> object which gets used
internally.

=back

=head1 METHODS

=over 4

=item allocate_sockets ( ... )

Calls B<allocate_sockets> of the local L<Net::SIP::NATHelper::Base>
object. Takes and returns the same arguments.

=item activate_session ( ... )

Calls B<activate_session> of the local L<Net::SIP::NATHelper::Base>
object. Takes the same arguments and returns 1 if the session was
newly activated, -1 if it was activated before and false if activation failed.
Updates callbacks into the event loop.

=item close_session ( ... )

Calls B<activate_session> of the local L<Net::SIP::NATHelper::Base>
object. Takes the same arguments and returns the number of closed
sessions.
Updates callbacks into the event loop.

=item expire ( ... )

Calls B<expire> of the local L<Net::SIP::NATHelper::Base>
object. Takes the same arguments and returns the number of expired
sessions.
Updates callbacks into the event loop if necessary.

=back