libssh  0.5.4
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 #include "libssh/session.h"
27 
28 struct ssh_bind_struct {
29  struct ssh_common_struct common; /* stuff common to ssh_bind and ssh_session */
30  struct ssh_bind_callbacks_struct *bind_callbacks;
31  void *bind_callbacks_userdata;
32 
33  struct ssh_poll_handle_struct *poll;
34  /* options */
35  char *wanted_methods[10];
36  char *banner;
37  char *dsakey;
38  char *rsakey;
39  char *bindaddr;
40  socket_t bindfd;
41  unsigned int bindport;
42  int blocking;
43  int toaccept;
44 };
45 
46 struct ssh_poll_handle_struct *ssh_bind_get_poll(struct ssh_bind_struct
47  *sshbind);
48 
49 
50 #endif /* BIND_H_ */