Exemplo n.º 1
0
static void
dsk_websocket_init (DskWebsocket *websocket)
{
  dsk_hook_init (&websocket->readable, websocket);
  websocket->max_length = 1 << 16;
}
Exemplo n.º 2
0
static void
dsk_memory_sink_init (DskMemorySink *sink)
{
  dsk_hook_init (&sink->buffer_nonempty, sink);
  dsk_hook_set_idle_notify (&sink->base_instance.writable_hook, DSK_TRUE);
}
Exemplo n.º 3
0
static void
dsk_client_stream_init (DskClientStream *stream)
{
  dsk_hook_init (&stream->disconnect_hook, stream);
  dsk_hook_init (&stream->connect_hook, stream);
}