DJabberd
view release on metacpan or search on metacpan
doc/rfc3921-notes.txt view on Meta::CPAN
an entity or specific resource. A presence stanza MUST NOT contain
more than one <show/> element. The <show/> element MUST NOT possess
any attributes. If provided, the XML character data value MUST be
one of the following (additional availability types could be defined
through a properly-namespaced child element of the presence stanza):
o away -- The entity or resource is temporarily away.
o chat -- The entity or resource is actively interested in chatting.
o dnd -- The entity or resource is busy (dnd = "Do Not Disturb").
o xa -- The entity or resource is away for an extended period (xa =
"eXtended Away").
If no <show/> element is provided, the entity is assumed to be online
and available.
2.2.2.2. Status
The OPTIONAL <status/> element contains XML character data specifying
doc/rfc3921.txt view on Meta::CPAN
an entity or specific resource. A presence stanza MUST NOT contain
more than one <show/> element. The <show/> element MUST NOT possess
any attributes. If provided, the XML character data value MUST be
one of the following (additional availability types could be defined
through a properly-namespaced child element of the presence stanza):
o away -- The entity or resource is temporarily away.
o chat -- The entity or resource is actively interested in chatting.
o dnd -- The entity or resource is busy (dnd = "Do Not Disturb").
o xa -- The entity or resource is away for an extended period (xa =
"eXtended Away").
If no <show/> element is provided, the entity is assumed to be online
and available.
2.2.2.2. Status
The OPTIONAL <status/> element contains XML character data specifying
lib/DJabberd/Stanza/StartTLS.pm view on Meta::CPAN
warn "$conn: Cipher `" . Net::SSLeay::get_cipher($ssl) . "'\n";
$conn->set_writer_func(DJabberd::Stanza::StartTLS->danga_socket_writerfunc($conn));
}
sub actual_error_on_empty_read {
my ($class, $ssl) = @_;
my $err = Net::SSLeay::get_error($ssl, -1);
if ($err == ERROR_WANT_READ || $err == ERROR_WANT_WRITE) {
# Not an actual error, SSL is busy doing something like renegotiating encryption
# just try again next time
return undef;
}
if ($err == ERROR_SYSCALL) {
# return the specific syscall error
return "syscall error: $!";
}
# This is actually an error (return the SSL err code)
# unlike the 'no-op' WANT_READ and WANT_WRITE
return "ssl error $err: " . Net::SSLeay::ERR_error_string($err);
( run in 0.336 second using v1.01-cache-2.11-cpan-87723dcf8b7 )