Added SILC Thread Queue API
[crypto.git] / lib / silcclient / client_listener.h
1 /*
2
3   client_listener.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2007 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 #ifndef CLIENT_LISTENER_H
21 #define CLIENT_LISTENER_H
22
23 /* Forward declarations */
24 typedef struct SilcClientListenerStruct *SilcClientListener;
25
26 SilcClientListener
27 silc_client_listener_add(SilcClient client,
28                          SilcSchedule schedule,
29                          SilcClientConnectionParams *params,
30                          SilcPublicKey public_key,
31                          SilcPrivateKey private_key,
32                          SilcClientConnectCallback callback,
33                          void *context);
34 void silc_client_listener_free(SilcClientListener listener);
35 SilcUInt16 silc_client_listener_get_local_port(SilcClientListener listener);
36
37 #endif /* CLIENT_LISTENER_H */