Пример #1
0
static void silc_net_accept_stream(SilcSocketStreamStatus status,
				   SilcStream stream, void *context)
{
  SilcNetListener listener = context;

  if (status != SILC_SOCKET_OK)
    return;

  listener->callback(SILC_NET_OK, stream, listener->context);
}
Пример #2
0
static void silc_net_accept_stream(SilcResult status,
				   SilcStream stream, void *context)
{
  SilcNetListener listener = (SilcNetListener)context;

  /* In case of error, the socket has been destroyed already via
     silc_stream_destroy. */
  if (status != SILC_OK)
    return;

  listener->callback(SILC_OK, stream, listener->context);
}