libssh  0.5.2
bind.h
1 /*
2  * This file is part of the SSH Library
3  *
4  * Copyright (c) 2010 by Aris Adamantiadis
5  *
6  * The SSH Library is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or (at your
9  * option) any later version.
10  *
11  * The SSH Library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14  * License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with the SSH Library; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19  * MA 02111-1307, USA.
20  */
21 
22 #ifndef BIND_H_
23 #define BIND_H_
24 
25 #include "libssh/priv.h"
26 
27 struct ssh_bind_struct {
28  struct error_struct error;
29 
30  ssh_callbacks callbacks; /* Callbacks to user functions */
31  struct ssh_bind_callbacks_struct *bind_callbacks;
32  void *bind_callbacks_userdata;
33 
34  struct ssh_poll_handle_struct *poll;
35  /* options */
36  char *wanted_methods[10];
37  char *banner;
38  char *dsakey;
39  char *rsakey;
40  char *bindaddr;
41  socket_t bindfd;
42  unsigned int bindport;
43  unsigned int log_verbosity;
44 
45  int blocking;
46  int toaccept;
47 };
48 
49 struct ssh_poll_handle_struct *ssh_bind_get_poll(struct ssh_bind_struct
50  *sshbind);
51 
52 
53 #endif /* BIND_H_ */