EV-Websockets
view release on metacpan or search on metacpan
Websockets.xs view on Meta::CPAN
ctx_unref(self);
if (rejected)
croak("Failed to adopt socket");
}
}
OUTPUT:
RETVAL
void
connections(EV::Websockets::Context self);
PPCODE:
{
ev_ws_conn_t* conn;
if (self->magic != EV_WS_CTX_MAGIC) XSRETURN_EMPTY;
for (conn = self->connections; conn != NULL; conn = conn->next) {
/* "connected" stays set during the "closing" drain (close() never
clears it), and is cleared together with wsi on teardown â so this
single predicate covers both the "connected" and "closing" states. */
if (conn->magic == EV_WS_CONN_MAGIC && conn->connected) {
XPUSHs(sv_2mortal(get_conn_sv(conn)));
}
( run in 0.480 second using v1.01-cache-2.11-cpan-5511b514fd6 )