silc_local_net_connect

SYNOPSIS

    SilcAsyncOperation silc_local_net_connect(const char *filepath,
                                              SilcSchedule schedule,
                                              SilcNetCallback callback,
                                              void *context);

DESCRIPTION

Connects to the local network server at the provided `filepath'. If the `filepath' does not exist or is not valid local network listener the connection will fail.

The `callback' with `context' will be called once the connection has been created. The stream returned to `callback' is a socket stream (silcsocketstream.h). SilcStream API can be used with the returned stream. The stream must be destroyed by calling silc_stream_destroy.

If `schedule' is NULL this will call silc_schedule_get_global to try to get global scheduler.