… | |
… | |
1797 | |
1797 | |
1798 | =item $handle->destroy |
1798 | =item $handle->destroy |
1799 | |
1799 | |
1800 | Shuts down the handle object as much as possible - this call ensures that |
1800 | Shuts down the handle object as much as possible - this call ensures that |
1801 | no further callbacks will be invoked and as many resources as possible |
1801 | no further callbacks will be invoked and as many resources as possible |
1802 | will be freed. You must not call any methods on the object afterwards. |
1802 | will be freed. Any method you will call on the handle object after |
|
|
1803 | destroying it in this way will be silently ignored (and it will return the |
|
|
1804 | empty list). |
1803 | |
1805 | |
1804 | Normally, you can just "forget" any references to an AnyEvent::Handle |
1806 | Normally, you can just "forget" any references to an AnyEvent::Handle |
1805 | object and it will simply shut down. This works in fatal error and EOF |
1807 | object and it will simply shut down. This works in fatal error and EOF |
1806 | callbacks, as well as code outside. It does I<NOT> work in a read or write |
1808 | callbacks, as well as code outside. It does I<NOT> work in a read or write |
1807 | callback, so when you want to destroy the AnyEvent::Handle object from |
1809 | callback, 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 | { |
1831 | sub 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 | |
1839 | This function creates and returns the AnyEvent::TLS object used by default |
1837 | This function creates and returns the AnyEvent::TLS object used by default |