ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.164 by root, Mon Jul 27 22:44:43 2009 UTC vs.
Revision 1.165 by root, Mon Jul 27 22:49:23 2009 UTC

1797 1797
1798=item $handle->destroy 1798=item $handle->destroy
1799 1799
1800Shuts down the handle object as much as possible - this call ensures that 1800Shuts down the handle object as much as possible - this call ensures that
1801no further callbacks will be invoked and as many resources as possible 1801no further callbacks will be invoked and as many resources as possible
1802will be freed. You must not call any methods on the object afterwards. 1802will be freed. Any method you will call on the handle object after
1803destroying it in this way will be silently ignored (and it will return the
1804empty list).
1803 1805
1804Normally, you can just "forget" any references to an AnyEvent::Handle 1806Normally, you can just "forget" any references to an AnyEvent::Handle
1805object and it will simply shut down. This works in fatal error and EOF 1807object and it will simply shut down. This works in fatal error and EOF
1806callbacks, as well as code outside. It does I<NOT> work in a read or write 1808callbacks, as well as code outside. It does I<NOT> work in a read or write
1807callback, so when you want to destroy the AnyEvent::Handle object from 1809callback, so when you want to destroy the AnyEvent::Handle object from
1824 $self->DESTROY; 1826 $self->DESTROY;
1825 %$self = (); 1827 %$self = ();
1826 bless $self, "AnyEvent::Handle::destroyed"; 1828 bless $self, "AnyEvent::Handle::destroyed";
1827} 1829}
1828 1830
1829{ 1831sub AnyEvent::Handle::destroyed::AUTOLOAD {
1830 package AnyEvent::Handle::destroyed;
1831
1832 sub AUTOLOAD {
1833 #nop 1832 #nop
1834 }
1835} 1833}
1836 1834
1837=item AnyEvent::Handle::TLS_CTX 1835=item AnyEvent::Handle::TLS_CTX
1838 1836
1839This function creates and returns the AnyEvent::TLS object used by default 1837This function creates and returns the AnyEvent::TLS object used by default

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines