silc_local_net_create_listener
SYNOPSIS
SilcNetListener silc_local_net_create_listener(const char *filepath, SilcLocalNetSecurity security, SilcSchedule schedule, SilcNetCallback callback, void *context);
DESCRIPTION
Creates a local network stream listener and returns a network server. The `filepath' is a local filepath that must be used by the clients to connect to the server. The `security' specify the access method to the listener. It can specify for example that only the user creating the listener is able to connect to it.
The `callback' will be called when a client connects to the listener with the `context'. The returned stream to the `callback' is a socket stream (silcsocketstream.h). The returned listener must be closed by calling silc_local_net_close_listener.
Clients can connect to the listener by calling the silc_local_net_connect.
Returns NULL on error and set silc_errno. If `schedule' is NULL this will call silc_schedule_get_global to try to get global scheduler.